single-listing php
Hi,
In my single-listing php file I have the code below which shows a hanging badge named "
Visit Our Site" which is fine, however, I would like to hyperlink the hanging badge (Visit Our Site) so it redirects to the business listing site when clicked on. Then I can remove the text based business listing hyperlink that is displayed below it.
See it
here.
<div class="section-head">
<a id="add-review" name="add-review"></a>
<h2 id="left-hanger-add-review"><?php _e( 'Visit Our Site', APP_TD ); ?></h2>
</div>
<?php if ( $website ) : ?>
<li id="listing-website"><a href="<?php echo esc_url( 'http://' . $website ); ?>" title="<?php _e( 'Website', APP_TD ); ?>" target="_blank"><?php echo esc_html( $website ); ?></a></li>
<?php endif; ?>
</ul>
Thank you very much in advance for any suggestions and or solutions.
tbase