WordPress site | Make a link out of a DIV on your WordPress template

Wordpress 101 Guide, Wordpress blog, Wordpress site, wordpress sites, wordpress theme, Wordpress website

Well, just because I have searched for this in the past. Very simple procedure. Let’s say you want to link your header div, what do you do? – Take care of business! Add a little javascript code and get your link on.

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

That is it!

Leave a Comment