Im trying to change the logo link that targets the frontpage to target an external link. How do I achieve this on genesis subtheme? Thanks in advance.

Comments

Meeyo’s picture

I found this http://drupal.org/node/892296 while searching.

Jeff Burnz’s picture

Status: Closed (fixed) » Active

The path is set in genesis_preprocess_page, you can override this in your sub-themes template php file, such as

// replace "genesis_SUBTHEME" with your theme name, and '<front>' with the path you require (keep the single quotes):
function genesis_SUBTHEME_preprocess_page(&$vars, $hook) {
   $vars['site_logo'] = $vars['logo_img'] ? l($vars['logo_img'], '<front>', array('attributes' => array('rel' => 'home'), 'title' => t('Home page'), 'html' => TRUE)) : '';
}

Edit: just making it more clear which bit you should change to set a custom path.

marcoka’s picture

Status: Active » Closed (fixed)

Status: Active » Closed (fixed)