• Resolved Laura

    (@syccylinders)


    Hi Maxime!

    Do you remember that you give me a code to put languages in the menu?

    Now the problem is that I want to put more than 3 languages and this code is not working, if I put 4 languages… Do you know what is the problem?

    I have installed the plugin “In the page script” and I put the code in “Footer Script”
    Then, the code is:

    <script type="text/javascript">
    jQuery(function ($) {
    	$("li.sublanguage a:contains('ES')").html('<img src="https://www.syc-cylinders.eu/wp-content/uploads/2016/09/es.png"/>');
    	$("li.sublanguage a:contains('EN')").html('<img src="https://www.syc-cylinders.eu/wp-content/uploads/2016/09/en.png"/>');
            $("li.sublanguage a:contains('FR')").html('<img src="https://www.syc-cylinders.eu/wp-content/uploads/2017/01/fr.png"/>');
            $("li.sublanguage a:contains('PT')").html('<img src="https://www.syc-cylinders.eu/wp-content/uploads/2017/09/pt.png"/>');
    });
    </script>

    Thanks!!!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Put more languages in menu’ is closed to new replies.