How do I make the header a homepage link?
-
I would like to make my header a link back to the homepage. Is this easy to do with the Graphene theme?
Thanks.
Mod
Yes. Go to
Graphene Options >> Display Options >> Header Display Options
and tick the box marked “Link header image to front page”
i have been looking and i thought id be able to find this myself as i have improved my knowledge thanks to help from you guys but is there a way of changing the “Go back to front page” text when you hover over the linked header
…is there a way of changing the “Go back to front page” text when you hover over the linked header
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Go back to front page' => 'Your custom Go Back string',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );Change Your custom Go Back string to whatever you want.
sorry to be a pain but i really dont want to mess with the .php files so is there by any chance a custom css way of doing it
The above method I mentioned is so simple. Just create a functions.php file in your child theme and add that piece of code into it!
…so is there by any chance a custom css way of doing it …
php is skeleton/organs and css is skin. You cannot change the function of someone’s internal organ by treating skin!
Learn php.
I’ll play about with it thanks for the help i thought php would have probably been the only way but i thought there might have been one of these magic lines you don’t expect to work in css
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.