• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

add WPML code to NAV bar

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › add WPML code to NAV bar

This topic is: not resolved

Tagged: NAV bar, wpml

  • This topic has 7 replies, 3 voices, and was last updated 7 years, 1 month ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • July 24, 2013 at 3:29 pm #52336
    foodiesplace
    Member

    Hi, I would like to add this code
    <?php do_action('icl_navigation_menu'); ?>

    from the WPML plugin to the nav bar, It should generate a drop down list of the languages available and I would like the drop down to show right next to the last menu item in my primary menu bar.

    Thanx

    Valentina

    July 24, 2013 at 3:48 pm #52343
    Brad Dalton
    Participant

    Can you please link to the documentation where this code is located. Thanks.

    You might be able to add it with this code:

    Source http://www.rfmeier.net/add-a-custom-primary-nav-extras-within-genesis/


    2700 Genesis Tutorials

    July 24, 2013 at 4:15 pm #52354
    foodiesplace
    Member

    Thanx
    I got the code on the set-up page ofthe WPML plugin and there it specifies to add the code to the header.php (where, how?)

    I've then found the same instructions on their website

    documentation here

    In the meantime I've tried to play around with the code u gave me but nothing happens
    thanx again

    July 24, 2013 at 4:23 pm #52358
    Brad Dalton
    Participant

    Its a premium plugin so they should provide the support for this.

    I'd paste Ryans code on their forum and ask them how to use it in the custom function so it displays right side of any genesis nav menu.


    2700 Genesis Tutorials

    July 24, 2013 at 4:31 pm #52359
    foodiesplace
    Member

    problem solved .....

    I am so sorry I took your time, I need to get this job done and the total lack of sleep is starting to get me.

    thanx!

    July 24, 2013 at 4:49 pm #52365
    Brad Dalton
    Participant

    Can you share the solution please.


    2700 Genesis Tutorials

    June 1, 2014 at 3:18 am #107711
    Konceptuel
    Member

    Did Ryan's code work for you?
    If not, what solution did you go with?

    May 14, 2015 at 8:19 pm #152280
    Brad Dalton
    Participant

    Here's another solution to add the flags or text links to any nav menu


    2700 Genesis Tutorials

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble