Your Time:
Our Time:
← Back to discussions

Polylang language switcher

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 6 replies, 3 voices, and was last updated 7 years, 6 months ago by Fem.

  • 2019-03-07 at 1:44 am
    Unknown Support Status
    #24835
    pekos76
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 10

    Hi there

    i beleive “iva-generator.php” is adding an “fa fa-caret-right” character to the polylang language switcher. Even though i am currecly using:

    jQuery(document).ready(function($){
    	$(".lang-item").removeClass("fa-caret-right");
    });

    to remove the caret-right font, I would like to know how can i change the iva-generator.php to avoid the language switcher displaying this font. This solution is dirty and loads more exceution time. The caret symbol is initially displayed and then goes away.

    The following (found here: https://polylang.wordpress.com/documentation/frequently-asked-questions/the-language-switcher/ )

    .lang-item, .lang-item-el, .lang-item-en {
    list-style: none;
    }

    does not work. The caret is introduced by the iva-generator.php.

    Maybe you can make also this option permanent in future releases or allow the user to have the choice to do so.

    Thanx

    • This topic was modified 7 years, 6 months ago by pekos76.
    • This topic was modified 7 years, 6 months ago by pekos76.
    2019-03-07 at 1:27 pm
    #24838
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    I think you are asking about the menu arrow icons right? If so can you please share me the screenshot of the section and the language you are using so that I can alter the code for you and BTW why you wish to change the fa-caret icon in Polylang?

    2019-03-07 at 4:38 pm
    Unknown Support Status
    #24839
    pekos76
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 10

    Hi

    you can see from the picture i attach that the caret is shown even though this is not a drop down menu. It only contains 1 menu item, therefore no need for drop-down indicator like the caret symbol. If I need to do so i will enable the mega-menu option and inlcude the menu items there. Bottom line is the symbol is useless and aesthetically wrong for my case.

    Check the English menu item

    2019-03-07 at 4:41 pm
    Unknown Support Status
    #24840
    pekos76
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 10

    Hi

    please look at the image https://imgur.com/uMy46gx. The caret symbol is shown for a menu item which has not other items in either drop-down or mega-menu. It is only one item therefore it needs no other indicator. Furthermore it is aesthetically wrong.

    thanx

    2019-03-08 at 12:27 pm
    #24841
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Sorry for the delay in response. It seems to be you are using two menus after checked language switcher you need to create a new menu and then go through the Manage Locations and select the newly created menu.
    If still facing the same issue you can contact us on Skype we will reply to you. Our Skype ID: support-aws

    2019-03-08 at 7:05 pm
    Unknown Support Status
    #24846
    pekos76
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 10

    Hi

    i am not using 2 menus, the language switcher is just one menu item with a setting to hide the current language. I am confident the logic is a bit wrong in the iva-generator.php and their might be a case in the series of conditionals (if, else ) which is not covering correctly the output of the polylang language switcher.

    Can you please help through skype?

    thanx

    2019-03-11 at 11:42 am
    #24848
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    You can contact us on Skype we will reply to you. Our Skype ID: support-aws

The topic ‘Polylang language switcher’ is closed to new replies.