GD shortcode remove

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

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

Open Support Ticket
  • Author
    Posts
  • #426984

    Alex Howes
    Expired Member
    Post count: 175

    Hello

    For logged in users, I’d like to display their claimed listings in a widget in the sidebar. Since it’s in the sidebar I’d like a condensed version of information- only the picture and name of each listing. Is there a way to remove the other information (such as address and reviews) by adding something into the shortcode? I also have a listing page and don’t want this information to be removed there, so can’t simply remove it in Place Settings.

    Thank you 🙂

    Alex

    #427001

    Alex Rollin
    Moderator
    Post count: 27815

    You can use Custom CSS to remove most elements of a listing. See this page for more information:

    https://wpgeodirectory.com/docs/customizing-your-style/

    #427064

    Alex Howes
    Expired Member
    Post count: 175

    Thanks.

    I only want to remove the elements of the listing when I display them in the sidebar. Wouldn’t CSS change it everywhere?

    #427071

    Kor
    Moderator
    Post count: 16516

    Hi Alex,

    Thanks for your reply. You can always target the CSS Class below if you wish to target all logged in users.

    
    
    .logged-in .someothercustomcss {
    
    }

    Thanks!

    #427075

    Alex Howes
    Expired Member
    Post count: 175

    Hi Kor,

    I just want to display a reduced version of the list in the sidebar, so I only want to remove some information on certain pages when I display the listings in the sidebar.

    #427077

    Kor
    Moderator
    Post count: 16516

    Hi Alex,

    Thanks for your reply. We do have an option that allows you to achieve this. Kindly refer to this section of the documentation and look at the “Show in what locations?” option https://wpgeodirectory.com/docs/core-place-settings/#show

    #427080

    Alex Howes
    Expired Member
    Post count: 175

    Hi Kor,

    I think you’re misunderstanding me. I am using the shortcode [gd_listings post_author=current_user] in two places on my website. One is as the main content on a page, and one is in the sidebar on another page. When it’s in the sidebar, I only want to display the picture and name.

    Alex

    #427100

    Alex Rollin
    Moderator
    Post count: 27815

    Please share the URL for the page with the sidebar in a private reply so we can provide you with a CSS example that you can use to further customize your style:

    https://wpgeodirectory.com/docs/customizing-your-style/

    #427104

    Alex Howes
    Expired Member
    Post count: 175
    This reply has been marked as private.
    #427118

    Kor
    Moderator
    Post count: 16516

    Hi Alex,

    Try using the custom CSS code below and see if it’s what you’re looking for.

    
    
    .widget .gd-post-gd_farm .geodir_more_info,
    .widget .gd-post-gd_farm .geodir-addinfo,
    .widget .gd-post-gd_farm .geodir-entry-content  {
        display:none!important;
    }
    #427119

    Alex Howes
    Expired Member
    Post count: 175

    Great, thank you! 🙂

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