How do I make the header a homepage link?

  • Anonymous

    #4128

    I would like to make my header a link back to the homepage. Is this easy to do with the Graphene theme?

    Thanks.

    Mod

    Kenneth John Odle

    #27327

    Yes. Go to

    Graphene Options >> Display Options >> Header Display Options

    and tick the box marked “Link header image to front page”

    John McCubbin

    #27328

    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

    Anonymous

    #27329

    …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.

    John McCubbin

    #27330

    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

    Anonymous

    #27331

    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.

    John McCubbin

    #27332

    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.