Adding A Hyperlink To Wordpress' Simplicity-Lite Featured-box Element
I'm building a site for one of my very first clients using Wordpress' Simplicity-Lite Theme. I'd like to alter the theme somehow so as to hyperlink my images in the featured-boxes
Solution 1:
Please try this:
<a href="<?php the_permalink (); ?>"><img class="box-image" src="<?php echo of_get_option('featured-image' . $fboxn, get_template_directory_uri() . '/images/featured-image' . $fboxn . '.png') ?>"/></a>
Instead of
<img class="box-image" src="<?php echo of_get_option('featured-image' . $fboxn, get_template_directory_uri() . '/images/featured-image' . $fboxn . '.png') ?>"/>
It should work.
Post a Comment for "Adding A Hyperlink To Wordpress' Simplicity-Lite Featured-box Element"