Forums

Header Link in 2.8.4 (2 posts)

  1. Merchaholic
    Member
    Posted 2 years ago #

    So, the codes below work... but it makes the entire page a link.

    <div id="header" role="banner" onclick="location.href='<?php echo get_option('home'); ?>/';" style="cursor: pointer;">

    ---For people that want to link to another page---

    <div id="header" role="banner" onclick="location.href='http://www.merchaholic.ca';">

    There must be an easy fix so it just works on the header image...
    I took the style cursor out of the second one only because it takes over the entire page since all the background links you back to whatever you put lol.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    but it makes the entire page a link

    Only if you're missing an </div> in your template file's markup.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags