Filter by Category (translate title)

New home Forums Pro Add-on General queries Filter by Category (translate title)

Tagged: 

This topic contains 23 replies, has 3 voices, and was last updated by  SG 1 year, 2 months ago.

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #35293

    Foojack
    Member

    Hello, can Filter by Category be placed directly on the map as a category selection window? Or where do you translate the “Filter by Category” heading and “All” in the categories?

    #35305

    Perry
    Moderator

    Hi there

    Thank you for getting in touch with us.

    There is no feature to place the category filter inside the map at the time of writing, however we’ll add this to our feature request list and look into adding that as soon as possible.

    Regarding the translation, you can use a snippet of custom Javascript to achieve that, may I ask for the URL of the page in question? The code can vary from site to site, if it’s possible to see your map page we can provide code to achieve that.

    Please let me know?

    Kind regards
    – Perry

    #35308

    Foojack
    Member
    This reply has been marked as private.
    #35320

    Perry
    Moderator

    Hi there,

    Please download and activate the 3rd party plugin “Simple Custom CSS & JS” and add custom JS. Please delete all the example code and then add the following:

    
    (function($) {
    
    $(document).ready(function() {
     $("p#wpgmza_filter_2").html("Vyberte typ služby");
     $("#wpgmza_filter_select option[value='0']").html("Vše");
    });
    
    })(jQuery);
    

    Please let me know if that works for you?

    Kind regards
    – Perry

    #35323

    Foojack
    Member

    Now there is no option to choose a category.

    #35324

    Perry
    Moderator

    Hi there,

    I’m very sorry, this was an oversight on my behalf.

    Can you please remove that code so I can see the filter?

    I’ll get back to you with the correct code following that, my apologies for the inconvenience.

    Kind regards
    – Perry

    #35325

    Foojack
    Member

    Removed.
    Is it possible to modify the style of that field a bit? Add a space between the field and the map. Alternatively, remove the border around the category.

    #35326

    Perry
    Moderator

    Hi there

    Please alter that to:

    
    (function($) {
    
    $(document).ready(function() {
     $("#wpgmza_filter_2").contents().first().replaceWith("Vyberte typ služby");
     $("#wpgmza_filter_select option[value='0']").html("Vše");
    });
    
    })(jQuery);
    
    #35327

    Perry
    Moderator

    Regarding adding spacing, please add Custom CSS through the same plugin and enter the following:

    
    #wpgmza_filter_2
    {
     margin-bottom: 0.5em;
    }
    

    You can tweak that to taste.

    Is there anything else I can help you with?

    Kind regards
    – Perry

    #35328

    Foojack
    Member

    Translation works. Only CSS does not change

    #35329

    Perry
    Moderator

    Hi there

    Please try changing that to

    
    #wpgmza_filter_2
    {
       padding-bottom: 0.5em;
    }
    

    Does that help?

    Kind regards
    – Perry

    #35330

    Foojack
    Member

    Yes it is OK. Thank you very much

    #35332

    Perry
    Moderator

    Hi there

    You’re most welcome!

    Is there anything else we can help you with?

    Kind regards
    – Perry

    #35334

    Foojack
    Member

    That’s ok for now. Is it possible to place a category filter below the map?
    The ideal solution would be where the filter categories and icons were on the map.

    #35336

    Perry
    Moderator

    Hi there

    Yes it’s possible to do that,

    I would need to see the page in order to give you the code to achieve that, could you please remove the holding page?

    Kind regards
    – Perry

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

You must be logged in to reply to this topic.