Forums

Flutter and text in sidebar (4 posts)

  1. andreand
    Member
    Posted 1 year ago #

    Hi!

    I'm building a multilingual website with WordPress and I wonder if it's possible to add text in the sidebar.

    I read about Flutter plugin, but I didn't find anything releated with the sidebar.

    Does someone know how to add text in sidebar, that can be translated?

    I tried two plugins to translate my website:
    qtranslate
    WPML Multilingual CMS

    however I haven't decided yet what I'll finally install.

    So, my doubts are:
    1. Does flutter allow adding text in sidebar?
    2. Can this text be translated using some plugin (qtranslate/WPML)?

    Thanks a lot!

  2. twiggy182
    Member
    Posted 1 year ago #

    Hi,

    have you find a solution to your problem? I'd be interested hearing it:)

    Thanks

  3. twiggy182
    Member
    Posted 1 year ago #

    Hi,

    I already found a solution.

    Instead of a text box, you use this widget which let you write PHP code:
    http://www.hongkiat.com/blog/execute-php-in-wordpress-post-page-and-widget-sidebar/

    Then, in the widget, you write this:

    <?php
    if(ICL_LANGUAGE_CODE=='en'){
    print("English text>");
    }
    if(ICL_LANGUAGE_CODE=='es'){
    print("Spanish text>");}
    }
    ?>

    I hope it will help someone:)

    Regards

  4. twiggy182
    Member
    Posted 1 year ago #

    I forgot to says that this is used with the formely free WPML plugin...

Topic Closed

This topic has been closed to new replies.

About this Topic