WordPress.org

Forums

Widget Logic
[resolved] How to get the langage value (2 posts)

  1. dwnfred
    Member
    Posted 3 years ago #

    Hi
    I would like to set a block menu for an English langage and an another for French langage.

    Could i put a PHP condition directly on the widget logic textbox OR do I need to do something else ?

    Best regards

    http://wordpress.org/extend/plugins/widget-logic/

  2. dwnfred
    Member
    Posted 3 years ago #

    OK it is solved :

    get_bloginfo('language') == 'en-US' /* For the first menu EN */
    get_bloginfo('language') == 'fr-FR' /* For the second menu FR */

    It was really simple, I was wrong with puting if PHP tag in the widget logic textfield... (it is already a condition in it)

    Thanks, kind regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.