GD V2 custom CSS

This topic contains 38 replies, has 4 voices, and was last updated by  Guust 4 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #488754

    Hendrik Biederstaedt
    Free User
    Post count: 100

    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,
    Hendrik

    #488781

    Guust
    Moderator
    Post count: 29970
    .gd_placecategory-restaurants  [data-tab= '#post_map']{display:none!important;}

    is working on my test site.

    Thanks

    #489297

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Strange… 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?

    #489302

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #489311

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Hi 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).

    #489314

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Ah… 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.

    #489379

    Guust
    Moderator
    Post count: 29970

    That 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.

    #489519

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Ok 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.

    #489554

    Alex Rollin
    Moderator
    Post count: 27815

    Posts 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

    #489579

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Points on the map is very difficult, you are right.
    I don’t see a light after reading the posts from the mention topic. 😉

    #489580

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Would 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.

    #489581

    Kor
    Moderator
    Post count: 16516

    Hi 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?

    #489587

    Hendrik Biederstaedt
    Free User
    Post count: 100

    Hi 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.

    #489590

    Kor
    Moderator
    Post count: 16516

    Hi 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/

    #489631

    Guust
    Moderator
    Post count: 29970

    Points 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.

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

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

Open Support Ticket