Client Logo In Listings View

This topic contains 12 replies, has 4 voices, and was last updated by  Giri 8 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #361835

    David
    Full Member
    Post count: 43

    I have added a file upload custom field to one of my CPT’s for customers to upload their Logo’s to listings. So far I have managed to achieve my initial layout, ie, removing the general photos/images from listings pages altogether by using the following custom code:

    
    
    .geodir_category_list_view li.geodir-gridview .geodir-post-img {
        display: none;
    }

    I now just have the custom logo which is what I wanted.

    How can I have it so the logo is clickable to the listings landing page? Is there any way of anchoring each logo to its respective listings page? At the moment it just opens the logo/image in a lightbox!
    Thanks

    #361930

    Kor
    Moderator
    Post count: 16516

    Hi David,

    Sorry, I’m not sure if I’m getting this. Since the logo is in the listing page, you want the logo to link back to the listing page? Or to a custom URL that is specified by customer? Please clarify.

    Thanks!

    #361967

    David
    Full Member
    Post count: 43

    Sorry, I wasn’t very clear with you there.

    I meant the actual listings page (set to grid view). Right now I have just the Logo appearing + default ratings, and no default images (removed with the custom code).

    I’d like for the logo, once clicked to take the user to the details (landing) page. But it opens up a lightbox currently of the logo image.. I’ve uploaded a screenshot for clarity.

    Hope that makes sense!

    Thanks.

    #362060

    Kor
    Moderator
    Post count: 16516

    Hi David,

    Thanks for your reply. Sorry, I’m not really sure why are you doing this. Your clients should be able to insert a featured image on the listings and you don’t really need to create a custom field to replace the featured image. Do you have a reason for this? I’m just curious, though. Furthermore, achieving what you needed there would require customization to link the custom field to the listings itself.

    thanks!

    #362130

    David
    Full Member
    Post count: 43

    If I use a featured image. Then it cannot be displayed on the sidebar of the landing page. Currently I have the logo image at the top of the sidebar, above the social links using the below code in functions.php;

    
    
    
    function gd_custom_change_sidebar_content_order() {
        return array(
    	'geodir_detail_page_more_info',
            'geodir_detail_page_review_rating',
            'geodir_social_sharing_buttons',
            'geodir_share_this_button',
            'geodir_detail_page_google_analytics',
            'geodir_edit_post_link'
        );
    }
    add_filter('geodir_detail_page_sidebar_content', 'gd_custom_change_sidebar_content_order');

    If I use a featured image, then I am asking customers to upload their logo twice effectively. One to be the ‘featured’ image, and the other for the Logo.

    The other problem is images by default on the landing page are quite large and appear in a slider – which will be useful for application screenshots (I’m building an App comparison site). I want to display the logo on the sidebar and the listings page – separate to the slider images.

    It doesn’t matter now; I will just hack the code to make it link to the landing page.

    #362203

    Kor
    Moderator
    Post count: 16516

    Hi David,

    Thanks for your reply and I’m sorry for not able to help much here. Well, let us know if you need anything else.

    Thanks!

    #362245

    David
    Full Member
    Post count: 43

    No probs. Will let you know how I get on and share the code.

    #365226

    justmark
    Full Member
    Post count: 375

    I would be very interested in this code as well!

    Thanks.

    #365572

    Giri
    Expired Member
    Post count: 3155

    Hi David and JustMark.

    Refer this thread. I have provided some code there for such feature few months back.

    https://wpgeodirectory.com/support/topic/archive-image/

    Let me know if you need any help.

    Thanks

    #365638

    justmark
    Full Member
    Post count: 375

    I will give this a shot. Thanks Giri!

    #365673

    David
    Full Member
    Post count: 43

    Thanks for this. I’m still crunching away at my workaround. This helps tremendously. Will share my results once working/testing!

    #365682

    justmark
    Full Member
    Post count: 375

    Looking forward to it David!

    #365850

    Giri
    Expired Member
    Post count: 3155

    Sure David.

    Let me know when you need assistance.

    Thanks

Viewing 13 posts - 1 through 13 (of 13 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