Make a Div Into a Link on Drupal

its hard to find this tutorial, i think. And finally and found a website;

Let mes share it …

It’s easy to make a div into a link using a bit of javascript. You can use this technique to make any div “clickable”. For example, you might want your “somediv” div to link to your home page. Here’s how:

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

If you’re using a standard drupal  theme, you can make your header div clickable by doing this:
That’s it!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s