Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1256334
    ki_admin
    Participant

    Hi,

    I am working with WPML on the Integrity stack.

    Thanks to this thread: https://community.theme.co/forums/topic/cant-translate-sort-portfolio-button/ I managed to translate the portfolio “sort button”, however, I cannot figure out where to translate or even change the “All” in the sort function.

    I hope you can help me out (once again) 🙂

    Sandra

    #1256336
    ki_admin
    Participant
    This reply has been marked as private.
    #1256626
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global JavaScript:

    jQuery(document).ready(function($){
    	var url = window.location.host;
    	var check_url = url.split(".");
    	var site_lang = check_url[1];
    	
    	if(site_lang == "dk") {
    		$(".x-portfolio-filters-menu li:nth-child(1) a").html("alle");
    	}
    });

    Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1260692
    ki_admin
    Participant

    I’m pretty sure you meant to write Edit Global Javascript and not CSS 🙂 It worked! Thanks a lot.

    #1260702
    Friech
    Moderator

    Hi There,

    Yup, sorry about that. Glad we could help.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1256334 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>