Skip navigation

Category Archives: Web Design

A client yesterday wanted a background image to be linked to a certain link. Well at first I didn’t know how to go about it, till I remembered in wordpress templates they usually link the header image to the homepage by:

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

So if you want to make a div into a link, you can do it like this:

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