Remove Category "all" for Markers

New home Forums Visitor Generated Markers General queries Remove Category "all" for Markers

This topic contains 4 replies, has 2 voices, and was last updated by  florian 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #51175

    florian
    Member

    Hello,
    i want to remove the category “all” from the Dropdown menu, that the visitors see, when they submit a new marker.
    I have searched the forum, but the solution does not work for me(i know the problem is a little bit different), i don’t find the file wp-google-maps-pro_categories.php, that are used in the following two solutions:

    Remove "All" Category


    https://www.wpgmaps.com/forums/topic/disable-all-filter/

    Can you please show me a solution?

    Thank you very much!
    Best regards
    Florian

    #51191

    Hi Florian,

    Thanks for getting in touch with us.

    I would be more than happy to help you with this.

    Could I kindly ask if you could please send me a link to the website where the map is so that I can take a closer look and assist you further with this?

    Thanks for your time and I am looking forward to hearing back from you.

    Best regards,
    Dylan

    #51198

    florian
    Member
    This reply has been marked as private.
    #51202

    Hi Florian,

    Thanks for the response and for the information.

    To achieve this, could I kindly ask you to please add the following custom JavaScript to Maps > Settings > Advanced > Custom JS:
    jQuery(document).ready(function(){
    jQuery(“#wpgmza_category”).find(“option”).first().remove();
    jQuery(“#wpgmza_category”).trigger(“change”);
    });

    After adding this and saving the settings, could I kindly ask you to test it and confirm if it is correct?
    Note: Sometimes the quotation marks in the forums might be incorrectly formatted and when added to the Custom JS this would cause JS errors. To avoid this, could I kindly ask you to change all the double quotation marks to single quotation marks?

    Please let me know if this helps.

    Thanks.

    Best regards,
    Dylan

    #51204

    florian
    Member

    Hi Dylan,

    this works, thank you very much for your amazing work!
    I also appreciate the very kind conversation with you.

    Thanks again and best regards,

    Florian

    #51205

    Hi Florian,

    Thanks for the response and I am really glad to hear that helped and am only happy to assist you.

    Please do let me know if there is anything else I can assist you with.

    Best regards,
    Dylan

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

You must be logged in to reply to this topic.