Jonny Quinn
Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
Thank you so much for your efforts. I tried the above function in my Theme functions.php and also in geodirectory_functions.php .. Unfortunately it didn’t seem to have any effect.
I truly appreciate your help, i realise it is above and beyond what should be expected.
Hey Giri, thanks for your reply. I’m not sure i fully understand the second option. Is there by any chance a working example in any of the docs ? I appreciate this is free support, so maybe you don’t have the time to post examples.
But any further help is greatly appreciated.
Kind Regards
Hi and thanks for your response. I’m having a bit of difficulty with the customisation.
So i’ve found the area that i need to change in listing-listview.php
<div class="geodir-post-img <?php echo apply_filters
('geodir_listing_listview_thumb_extra_class', '',
'listing'); ?>">
<?php if ($fimage = geodir_show_featured_image
($post->ID, 'list-thumb', true, false,
$post->featured_image)) { ?>
<a href="<?php the_permalink(); ?>">
<?php echo $fimage; ?>
</a>
So i’ve been experimenting with it in many ways but the closest i came was by simply changing
$post->featured_image
to
$post->geodir_logo
which is my custom field.
Unfortunately the html output is not quite right ..
<div class="geodir-post-img ">
<a href="http://mysite.com/
designers/united-kingdom/lisburn/hillsborough/web-design/
fluid-studio/">
<div data-src="http://mysite.com/wp-content/uploads
http://mysite.com/wp-content/uploads/2017/01/
7947_geodir_logo_logo_green.jpg" class="geodir_thumbnail
geodir_lazy_load_thumbnail" style="background-image:
url(http://mysite.com/wp-content/uploads
http://mysite.com/wp-content/uploads/2017/01/
7947_geodir_logo_logo_green.jpg); opacity: 1;"></div> </a>
As you can see it is pre-pending
http://mysite.com/wp-content/uploads
to everything.
Could anyone please point me in the right direction to fix this ?
Thanks agin for your help, it is greatly appreciated.
Get the latest news, tips, and exclusive content directly in your inbox.
Confirm your email address, and instantly receive the discount code :)