Site logo

Archived topic

Place a personalized language selector after navigation content

8 replies · Started by Eloy on September 20, 2017

Viewing posts 1–9 of 9

Hi,

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: https://boatpartybarcelona.com/

Thanks in advance!

Sorry, I'm using Generate Premium! :)

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

I'm not seeing it anywhere.

Try targeting that div with CSS like this:

.div-name {
    text-align: right;
}

Hi,

I created this image trying to explain what I mean.
Menu

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>
    </div>
<?php }

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

Thanks.

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!

Glad you found the solution!

This archived topic is closed to new replies.