Link Header image to another page

  • gruuna

    #7686

    Hey,

    I’m building up a blog (shops.gruuna.com) and am a beginner. I need my header image to link to another website so I read in this forum and found: https://forum.graphene-theme.com/graphene-support/change-header-link

    I copied the code in my functions.php file, just how Syahir suggested (with filling in the website where my header image should link to) and let the tick in saying the header image should link to the homepage in the settings. I don’t know where to find the filter hooks.

    Now if I am on my second page, it links me to the external website (yeehaa) but if I’m on the homepage, I can’t click the header image, which would make sense if I’d still have everything linked to the homepage. I need the header on the homepage link to the external website as well. Any further suggestions? Please help…

    Thanks a lot. 🙂

    I hope my description of the problem is kind of understandable.

    Anonymous

    #39026

    Add this to Custom <head> tags in Advanced Graphene Options.

    <script type="text/javascript">
    jQuery(document).ready(function ($) {
    $(".home .header-img").wrap("<a href='http://www.gruuna.com/'></a>");
    });
    </script>

    gruuna

    #39027

    Perfect – thanks so much for your quick response. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.