Logo as Featured Image

This topic contains 19 replies, has 3 voices, and was last updated by  Giri 7 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #369691
    #369692

    Dustin Ames
    Expired Member
    Post count: 28

    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');
    #369709

    Guust
    Moderator
    Post count: 29970

    I alerted Giri to review your issue.
    Thanks

    #369742

    Giri
    Expired Member
    Post count: 3155

    Hi David, Please post your admin details in private.

    So I can check whats wrong.

    Thanks

    #369987

    Dustin Ames
    Expired Member
    Post count: 28
    This reply has been marked as private.
    #370020

    Giri
    Expired Member
    Post count: 3155

    Hi David,

    I need your website url too.

    Thanks

    #370103

    Dustin Ames
    Expired Member
    Post count: 28
    This reply has been marked as private.
    #370112

    Giri
    Expired Member
    Post count: 3155

    It’s working, except that the layout is incorrect and as stated in another post, the image src is pre-pending “https://www.example.com/wp-content/uploads”, so the full src is:

    Hi David, can you give me the direct page link where i can see that problem?

    Thanks

    #370125

    Dustin Ames
    Expired Member
    Post count: 28

    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.

    #370141

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    #370149

    Dustin Ames
    Expired Member
    Post count: 28

    Thanks Giri.

    #370178

    Giri
    Expired Member
    Post count: 3155

    Hi David,

    I have fixed and applied the patch in your website.

    Thanks

    #370206

    Dustin Ames
    Expired Member
    Post count: 28

    Thank you so much Giri!

    #370210

    Giri
    Expired Member
    Post count: 3155

    You are welcome.

    #370239

    Dustin Ames
    Expired Member
    Post count: 28

    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.

Viewing 15 posts - 1 through 15 (of 20 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount