Forums

Clickable header div Not Working (2 posts)

  1. peteraltenberg
    Member
    Posted 3 years ago #

    I've seen this technique all over the place for making the header div a clickable link but I can't for the life of me get it to work. I've tried both of these with many variations:

    <div onclick="location.href='http://www.example.com';" style="cursor:pointer;"></div>

    <div id="header"onclick="location.href='<?php bloginfo('url'); ?>';" style="cursor: pointer;"></div>

    Does it not work inside another div or could there be something else interfering? Every time I try it I get code from the command showing up on my page like

    ); ?>';" style="cursor: pointer;">

  2. ClaytonJames
    Member
    Posted 3 years ago #

    Here is an individual who says he got it to work;

    http://wordpress.org/support/topic/157115?replies=7#post-693958

    I also see lots of similar references in the search results.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags