Hide map on listing page

This topic contains 18 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 7 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #448511

    Dawn
    Expired Member
    Post count: 96

    Hi,

    I can’t seem to hide the map on the listing page. I’ve removed the map widget from the listing right hand and left hand section yet the map still shows. Am I missing something?

    Thanks

    Dawn

    #448513

    Kor
    Moderator
    Post count: 16516

    Hi Dawn,

    Please share the URL of the site in question so that I could check your setup.

    Thanks!

    #448515

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448516

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448518

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448575

    Kor
    Moderator
    Post count: 16516

    Hi Dawn,

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

    
    
    aside#gd-sidebar-wrapper {
        display:none!important;
    }
    
    .sd.search.geodir-page #geodir_content, .sd.archive.geodir-page #geodir_content {
        flex-basis: 100%!important;
    }
    #448593

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448600

    Dawn
    Expired Member
    Post count: 96

    Hi Kor,

    That gets rid of the sidebar entirely unfortunately as well as the map. Even on the detail page the content in the sidebar goes. It’s not that I want to lose the sidebar – just that I want to output what’s in the listing widget instead. Any other ideas why that’s not working?

    #448605

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448609

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    If you do not want the map on the sidebar then the Supreme theme may not be a good fit for your site.

    You can use any theme besides Supreme to have control of the left and right sidebar on the listings page.

    Supreme child theme is designed specifically to have the entire right sidebar on the listing page dedicated to a map, with no left sidebar.

    The right sidebar map on listing pages is automatically hidden for CPTs that are marked to have no physical location.

    However, it is not possible without a customization to include additional items in the widget area outside of that case.

    You can use the following CSS and adapt it to meet your needs: https://wpgeodirectory.com/support/topic/removing-map-on-listings-page-in-supreme-theme/#post-409598

    For more changes to the right sidebar you will need to hire a developer. You can find GD Experts on this site: https://geodirectoryexperts.com/

    #448624

    Dawn
    Expired Member
    Post count: 96

    Hi Alex,

    I have now changed theme and that seems to have resolved it. However, now the pagination is showing on the custom post types output on the home page despite having a parameter of number of posts set to 5. Any idea how to resolve that?

    #448626

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448662

    Alex Rollin
    Moderator
    Post count: 27815

    Hi,

    that is a location page and it will use the settings for GD Home and the home page.

    Try the settings at:

    Geodirectory – Design – Home

    Then for widgets, add widgets to the GD Home widget areas.

    #448669

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #448672

    Alex Rollin
    Moderator
    Post count: 27815

    For widget logic, for some tags, placing a ! before the statement seems to make it “everywhere except here”.

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

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

Open Support Ticket