Hello, Newbie with simple question here...
A developer has entered this code for me to display a banner ad on my wordpress page. I want the ad to link to a page. How would I do that with this code?

<div class="head_banner"><img src="<?php bloginfo('template_url'); ?>/images/image.png"></div>

Recommended Answers

All 2 Replies

Something like this

<div class="head_banner"><a href="<?php echo home_url();?>/page"><img src="<?php bloginfo('template_url'); ?>/images/image.png"></a></div>
<div class="head_banner"><a href="<?php echo home_url();?>/page"><img src="<?php bloginfo('template_url'); ?>/images/image.png"></a></div>

yes its the same

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.