Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #193049

    Is it possible to link the header to a different page, currently its directed to the homepage.

    #193053

    Hi irishvintagescene!

    In WordPress dashboard, please go to Appearance > Editor and open Header.php file and find

    <?php echo get_settings('home'); ?>/

    and change it to url you would like logo to link to

    Regards,
    Yigit

    #193063

    Hi Yigit,

    As you can tell by now I’m useless as php. I’ve changed ‘home’ to the new url but didn’t work

    <?php echo get_settings(‘http://www.irishvintagescene.ie/special-offers/’); ?>/

    Can you confirm where I went wrong.

    Thanks
    Austin

    #193066

    Hi!

    You should directly replace following line with the url you would like to add and not only replace it with home

    <?php echo get_settings('home'); ?>/

    Please see screenshot here http://i.imgur.com/4Su2uPu.jpg

    Cheers!
    Yigit

    #193067

    You might also confirm its it possible to have 3 different headers images side by side but all linking to different pages.

    #193070

    Thanks you Yigit I don’t have to tell you that worked you already know :)

    #193076

    Hi!

    You are welcome! Glad we could help :)
    You can add your images in Header.php file right under the line you have just made changes

    Regards,
    Yigit

    #193354

    Hi Yigit,

    I have a small issue with the link, its going to http://www.irishvintagescene.ie/special-offers/

    but when you click the header again it adds the link again and again

    http://www.irishvintagescene.ie/special-offers/special-offers/

    http://www.irishvintagescene.ie/special-offers/special-offers/special-offers/

    Thanks
    Austin

    #193374

    Hi!

    Please edit header.php again, find this code:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>"><a href="<?php echo get_settings('home'); ?>/"><?php echo $logo; ?></a></h2>

    Replace it with:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>"><a href="http://www.irishvintagescene.ie/special-offers/"><?php echo $logo; ?></a></h2>

    Remove browser cache then reload the page.

    Regards,
    Ismael

    #193377

    Needless to say that’s working perfect. Thanks again, Christmas card in the post :)

    #193397

    Hey!

    Glad it worked. :)

    Regards,
    Ismael

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

The topic ‘Header image link to different page’ is closed to new replies.