[Resolved] Place a personalized language selector after navigation content

Home Forums Support [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
    Posts
  • #389064
    Eloy

    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!

    #389065
    Eloy

    Sorry, I’m using Generate Premium! πŸ™‚

    #389073
    Leo
    Staff
    Customer Support

    Hi there,

    Glad you are enjoying GP πŸ™‚

    Try the After Header Content hook: http://demo.generatepress.com/hook-locations/

    Let me know if this works.

    #389076
    Eloy

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

    #389115
    Leo
    Staff
    Customer Support

    I’m not seeing it anywhere.

    Try targeting that div with CSS like this:

    .div-name {
        text-align: right;
    }
    #389255
    Eloy

    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.

    #389310
    Eloy

    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.

    #389353
    Eloy

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

    #389464
    Leo
    Staff
    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.