Remove listing website link from homepage

This topic contains 10 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 11 months ago.

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

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #515087

    serendipity
    Buyer
    Post count: 131

    I am using the grid layout on my homepage for listings. Each listing shows a “new” button and a website link icon to the right of the “new” button. How do I remove the website link from each listing? I went to Places > Settings > Custom Fields > List of fields that will appear on add new Place listing form > Website but the output field for the website is the “Details Page Sidebar” and no other location. So, why is the website link appearing on the homepage for each listing?

    Thanks for your help

    #515117

    Kor
    Moderator
    Post count: 16516

    Hi serendipity,

    Thanks for your post. Those are actually badges and you can edit it on the “Archive Item” https://wpgeodirectory.com/docs-v2/templates/archive-item/

    #515131

    Alex Rollin
    Moderator
    Post count: 27815

    If you are using GD Output Location in your Archive item template, you may also be able to remove it by visiting the Website Custom Field settings.

    Places – Settings – Custom Fields – Website – Show advanced – Show in what locations – Remove “Listings”

    #515541

    serendipity
    Buyer
    Post count: 131

    I checked out the link and I removed the following shortcode from the GD Archive Item template and it works:

    [gd_post_badge key=’website’ condition=’is_not_empty’ icon_class=’fas fa-link fa-fw’ link=’%%input%%’ new_window=’1′ bg_color=’#85a9b5′ txt_color=’#ffffff’ alignment=’left’]

    Thanks a lot

    #515563

    Alex Rollin
    Moderator
    Post count: 27815

    Excellent!

    #518458

    serendipity
    Buyer
    Post count: 131

    Hi,

    Since I removed the “website” shortcode from the GD Archive Item template, the website link icon doesn’t display on the homepage listings and on the listing details page. I wanted to remove the website link item ONLY from the homepage listings page but I want it displayed on the listing details page.

    I just restored the GD Archive Item template to its default so the “website” shortcode is included in it.
    a. Could you tell me how to remove the “website” icon from the homepage listings but leave it on the listing details page?

    I went into GD > Settings > > custom fields > website field but there’s no option to remove it from the homepage listings. I see the option to have it on the listing details page sidebar, the map, comparison page.

    b. Why isn’t the “website” link displaying in the details page sidebar?
    c. How do I remove the website link and phone number from the top section of the listing details page and only show them in the details page sidebar? See attached image.

    Thanks

    #518537

    Alex Rollin
    Moderator
    Post count: 27815

    You will need custom CSS for that. Add the link back to the GD Archive item and then hide it with your own CSS.

    You will need a unique body class from the home page and then CSS to hide the link.

    We can provide an example if we can see the page so share a URL in a private reply and we will take a look.

    #518570

    serendipity
    Buyer
    Post count: 131
    This reply has been marked as private.
    #518571

    Alex Rollin
    Moderator
    Post count: 27815

    Try this CSS

    
    
    
    body.home .gd-badge-meta-website {
        display: none;
    }
    
    #518574

    serendipity
    Buyer
    Post count: 131

    It works. Thanks a lot 🙂

    #518640

    Alex Rollin
    Moderator
    Post count: 27815

    Excellent!!

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