GD V2 custom CSS
This topic contains 38 replies, has 4 voices, and was last updated by Guust 6 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 24, 2019 at 8:25 pm #488754
Hi again,
In GD 1 I used the custom ssc code as below for hiding the map for some categories:
.gd_placecategory-podcasts [data-tab=”#post_map”] {display:none!important;
}.gd_placecategory-media [data-tab=”#post_map”] {display:none!important;
}.gd_placecategory-madden [data-tab=”#post_map”] {display:none!important;
}In GD2 the codes doesn’t work!
Do you have an idea?
Thanks!
Regards,
HendrikMay 25, 2019 at 12:06 am #488781.gd_placecategory-restaurants [data-tab= '#post_map']{display:none!important;}
is working on my test site.
Thanks
May 27, 2019 at 5:20 pm #489297Strange… it doesn’t work on my site.
Example:
.gd_placecategory-podcasts [data-tab= '#post_map']{display:none!important;}
link: https://www.njoyfootball.de/places/category/podcasts/
Do you have an idea?
May 27, 2019 at 5:23 pm #489302This reply has been marked as private.May 27, 2019 at 5:34 pm #489311Hi Kor,
Yes that’s correct, but in the category listing page there is the map:
https://www.njoyfootball.de/places/category/podcasts/
I have tried it with another browser (deleted the cache before).
May 27, 2019 at 5:42 pm #489314Ah… I need to know the code for hiding the map in the category listing page. 🙂 For some categories I need a map, for some others not.
May 27, 2019 at 10:02 pm #489379That is not that simple … that will require a bit more than just some CSS code.
Would it not be simpler to create a CPT that does not use addresses? Then hiding the maps is all automated.May 28, 2019 at 3:57 pm #489519Ok that make sense, thanks.
Another question.
On my listing pages are max. 10 entries per page,
on the map there will be max. 10 marks.
But it would be nice when I have 20 entries in a category, that all 20 entries will be marked on the category map. How can I do this?Example: https://www.njoyfootball.de/places/category/fanclubs/
Here are 14 entries, max. 10 per page will be shown, and on the map there will be only max. 10 shown.May 28, 2019 at 4:55 pm #489554Posts per page is a WP setting in WP – Settings – Reading – Posts per page
Points on the map is a little difficult to change, see: https://wpgeodirectory.com/support/topic/number-of-listings-on-search-page/#post-476656
May 28, 2019 at 6:38 pm #489579Points on the map is very difficult, you are right.
I don’t see a light after reading the posts from the mention topic. 😉May 28, 2019 at 6:46 pm #489580Would it not be simpler to create a CPT that does not use addresses? Then hiding the maps is all automated.
How can I create it for a special category? I have also cagetories where an address is required.
May 28, 2019 at 6:52 pm #489581Hi Hendrik,
Thanks for your reply. To create a CPT that does not use an address, you can refer to the instructions here https://wpgeodirectory.com/docs-v2/places/custom/#address . Is this what you’re looking for?
May 28, 2019 at 7:07 pm #489587Hi Kor,
I can create it for a special category or affect it all categories?
It’s not clear for me, don’t see how can I saved it for a special category.May 28, 2019 at 7:23 pm #489590Hi Hendrik,
Thanks for your reply. You can only enable it on CPT and not category. You can use this addon to create custom CPT’s as explained here https://wpgeodirectory.com/docs-v2/addons/custom-post-types/
May 28, 2019 at 11:08 pm #489631Points on the map is very difficult, you are right.
I don’t see a light after reading the posts from the mention topic.You need to edit this file:
/themes/supreme-directory/content-geodirectory-archive.php
Look for the gd_map shortcode in that file.
Add this to that shortcode:all_posts=1
You need to create a new CPT, and then create a new podcast category.
Then move all listings from the podcast category in your existing CPT to the new podcast category in the new CPT. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket