Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Place a personalized language selector after navigation content

Home Forums Support Place a personalized language selector after navigation content

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #389064


    Thanks for the theme. Since now I have been using themes multipurpose very heavy and with poor performance, yours is great compared with them.

    Now I’m trying to create a language selector menu just after the main menu. I checked the forums and I created a div using a Snippet but it always get placed over the navigation menu. How can I place him just before the navigation menu?

    The website is:

    Thanks in advance!

    GeneratePress 1.4

    Sorry, I’m using Generate Premium! 🙂

    Customer Support

    Hi there,

    Glad you are enjoying GP 🙂

    Try the After Header Content hook:

    Let me know if this works.


    Already tried but places the menu just after the logo (I let it there just you to see).

    Customer Support

    I’m not seeing it anywhere.

    Try targeting that div with CSS like this:

    .div-name {
        text-align: right;


    I created this image trying to explain what I mean.

    It didn’t work. The code I used to create the div I marked in blue is:

    add_action( 'generate_inside_navigation','tu_insert_into_navigation' );
    function tu_insert_into_navigation()
    { ?>
        <div class="wpml-picker">
            <p style="color:white">ES EN FR</p>
    <?php }

    The idea is to move the div just after the Navigation bar.



    I continued working on it, I could place the Language selector where I wanted but the problem now is that navigation menu is splitted, see image below. Don’t know if I’m more close to solve my problem or just the opposite.. 🙁
    Menu 2

    For me it would be also acceptable of having the navigation menu centered on the header if it’s any easier.


    Solved! I hide the headr and I’m using only the navigation menu!

    Customer Support

    Glad you found the solution!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.