A Simple Way to Make Your WordPress Banner Clickable – Surry Hills, NSW, Australia

I wanted to make the banner/header on my site clickable in order to allow visitors the ability to see the original picture. After googling for a while, I found a simple method using only php at WordPress support. On my theme, you must edit the header.php file which contains the banner/header image details.

I added the following code to the div that is responsible for the banner/header image:

onclick=”location.href=’’;” style=”cursor: pointer;

The relevant portion of the header.php file for the WordPress header I use is in blue:

<div id=”farouter”>
<div id=”outer”>
<div id=”rap”>
<div id=”masthead” onclick=”location.href=’′;” style=”cursor: pointer;”>

<h1 id=”header”><a href=”<?php bloginfo(‘url’); ?>”><?php bloginfo(‘name’); ?></a></h1>
<h2 id=”tagline”><?php bloginfo(‘description’); ?></h2>
<div id=”hmenu”>
<div id=”hnav”>

<ul id=”navlist”>
<li class=”page_item”><a href=”<?php bloginfo(‘url’); ?>”>Home</a></li>
<?php wp_list_pages(‘depth=1&title_li=’); ?>

<div id=”main”>

<div id=”content”>
<!– end header –>

2 replies on “A Simple Way to Make Your WordPress Banner Clickable – Surry Hills, NSW, Australia”

That’s a nice picture, Darran.

BTW, did you know that you can no longer feed the birds in the plaza? I’ve read recently that they’ve outlawed it. So, you are now an outlaw (or, you know, something like that. :~)

Thanks – I didn’t know they outlawed it. I did hear someone say that they put sterilizer in the bird feed. I also read an article a couple of weeks ago that said they are going to introduce pricing schemes in Venice to balance out the tourism throughout the year.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.