Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: Logo And Site Name Refer To Home Page On The Selected Language

Submitted by on September 1, 2010 – 11:03 amNo Comment

If there are a few languages on your Drupal-based site (the site is multilanguage) then logo and/or site name should refer to home page on the selected language rather than on the main site language.

Solution
  • Open page.tpl.php file in current theme folder
  • Find “$logo” line in this file – this is logo output. Site name output is usually about somewhere.
  • Find how the link is formed. Usually it is

    echo check_url($base_path);

    or

    print $base_path;

  • Replace it with:

    echo url(‘<front>’, array(‘absolute’ => TRUE));

That is all!

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.