Clickable header div Not Working
-
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=’https://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;”>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Clickable header div Not Working’ is closed to new replies.