Hide CPT title on Popular Post shortcode

This topic contains 4 replies, has 3 voices, and was last updated by  Paolo 7 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #292693

    marktowers
    Buyer
    Post count: 171

    Hi.

    I’m using the “gd_popular_post_view” shortcode and don’t want to show a title. If I don’t include a title in the shortcode it adds the CPT title. So, I need to hide the title – Can you advise how to hide this? This is possible on other shortcodes so I’m hoping it can be done on this one too.

    Thanks,
    Mark

    #293019

    Kor
    Moderator
    Post count: 16516

    Hi Mark,

    You can use custom CSS to achieve what you needed there. Try using the custom CSS code below by inserting it into GD > Design > Scripts > Custom Style CSS. If it doesn’t work, do you mind sharing the URL of the site in question so we can take a look? You can use the private reply option below.

    
    
    .geodir_category_list_view .geodir-entry-title {
        display:none;
    }
    #293066

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #296727

    marktowers
    Buyer
    Post count: 171

    Any thoughts on this one?

    Cheers.

    #296884

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    if you want to hide a widget title in the entry content and not the sidebar, you need to target the CSS more specifically.

    Example:

    
    
    .widget-title {
        display: none;
    }

    Will hide them in the entire page.

    
    
    .entry-content .widget-title {
        display: none;
    }

    Will hide them only in the main content area.

    
    
    .sidebar .widget-title {
        display: none;
    }

    Will hide them only in the sidebar.

    Hope this helps.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket