Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1424952

    Referring to the link here:

    Can this be done on a bilingual site?

    Here is what I’ve added to functions.php in my child theme:

    //--------------------------------
    // English Header widget area
    //--------------------------------
    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( 'header' );
    }

    How can I make a Spanish version on the same site? We use WPML.
    Thank you.

    #1424976

    Hey NCATIT,

    You should be able to get the current language using code like this, then you can create a conditional statement based on that: https://wpml.org/wpml-hook/wpml_current_language/

    Best regards,
    Rikard

    #1425494

    Worked a treat, thank you!

    #1425505

    Hi NCATIT,

    I’m glad that Rikard could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding a Bilingual Header Widget Area.’ is closed to new replies.