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, 1 month ago.

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #35337

    Foojack
    Member

    Its OFF

    #35340

    Perry
    Moderator

    Hi there

    Please change the JS to this:

    (function($) {

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

    })(jQuery);

    You will also need to change padding-bottom to padding-top in the CSS if you wanted the gap to be able the filter.

    Is there anything else I can help you with?

    Kind regards
    – Perry

    #42389

    SG
    Member

    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);
    

    Hi Perry,
    Thank for the code, it’s working well.
    it is possible also to style the “Vše” directly by JS ?
    for example to have it in front-end in Red and Bold ?

    thanks

    #42421

    Perry
    Moderator

    Hi there

    Yes certainly,

    You can use the following:

    
    $("#wpgmza_filter_select option[value='0']").css({
     "font-weight": "bold",
     "color": "red"
    });
    

    I hope that helps?

    Kind regards
    – Perry

    #42425

    SG
    Member

    hi Perry,

    Thank for the answer.
    it’s working only when we open the dropdown menu.

    Any chance to get it display when the dropdown menu is close ? it’s there where i want it more visible

    cheers,

    Attachments:
    You must be logged in to view attached files.
    #42449

    Perry
    Moderator

    Hi there

    Could you possibly link us to the page?

    Kind regards
    – Perry

    #42458

    SG
    Member
    This reply has been marked as private.
    #42498

    Perry
    Moderator

    Hi there

    I added some custom JS to achieve that, unfortunately it also effects all the children of the dropdown.

    There is no way to do this as far as I can tell, without using a custom jQuery dropdown.

    I’m sorry we can’t be more forthcoming there.

    You can delete the custom JS in Simple Custom CSS & JS if this style is undesirable.

    Is there anything else I can help you with?

    Kind regards
    – Perry

    #42502

    SG
    Member

    no pb, thank for all Perry.
    Great plugin and great team 🙂

Viewing 9 posts - 16 through 24 (of 24 total)

You must be logged in to reply to this topic.