Dustin Ames
Forum Replies Created
Viewing 7 posts - 16 through 22 (of 22 total)
Viewing 7 posts - 16 through 22 (of 22 total)
I saw what you changed in post-functions. I’m wondering if the problem was because the images were uploaded before I switched to https?
Thanks again.
Thank you so much Giri!
Thanks Giri.
If you check the source code on the home and listings pages, you’ll see the first place listing image src on each of the listings is pre-pended.
https://www.potplus.com/ (starting on line 767)
https://www.potplus.com/listings/ (starting on line 615)
I added the code you recommended in this post to the bottom of my child theme’s functions.php file, so a thumbnail displays, but it doesn’t adopt the css.
listing-listview.php and widget-listing-listview.php have been modified and here’s the code in my child theme’s functions.php file:
function modify_geodir_featured_image($post) {
if ($post->geodir_company_logo) {
?>
<a href="<?php the_permalink(); ?>">
<img src="<?php echo $post->geodir_company_logo; ?>" />
</a>
<?php
}
}
add_action('geodir_before_badge_on_image', 'modify_geodir_featured_image');
Signup to our newsletter for a chance to win a Lifetime License worth $1,495.
Buy with confidence: If you win, we'll refund any purchase made during the sale!
You've been entered into the draw.
Check your inbox for confirmation.