Hide map on listing page
This topic contains 18 replies, has 3 voices, and was last updated by Alex Rollin 7 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: map
-
AuthorPosts
-
October 2, 2018 at 4:14 pm #448511
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
October 2, 2018 at 4:29 pm #448513Hi Dawn,
Please share the URL of the site in question so that I could check your setup.
Thanks!
October 2, 2018 at 4:31 pm #448515This reply has been marked as private.October 2, 2018 at 4:32 pm #448516This reply has been marked as private.October 2, 2018 at 4:33 pm #448518This reply has been marked as private.October 3, 2018 at 3:56 am #448575Hi 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; }October 3, 2018 at 6:42 am #448593This reply has been marked as private.October 3, 2018 at 7:03 am #448600Hi 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?
October 3, 2018 at 8:24 am #448605This reply has been marked as private.October 3, 2018 at 8:54 am #448609Hello,
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/
October 3, 2018 at 10:23 am #448624Hi 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?
October 3, 2018 at 10:36 am #448626This reply has been marked as private.October 3, 2018 at 2:08 pm #448662Hi,
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.
October 3, 2018 at 2:20 pm #448669This reply has been marked as private.October 3, 2018 at 2:28 pm #448672For widget logic, for some tags, placing a ! before the statement seems to make it “everywhere except here”.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket