WordPress.org

Forums

qTranslate
Translate sidebar widget content and footer (7 posts)

  1. matodoro
    Member
    Posted 1 year ago #

    Hi,

    I am wondering how to translate widget content and the custom footer on this site: http://designcacaofantasie.com/clients/sitasys/en/kontakt/

    I am obviously new to all that so excuse me if this should have been clear.

    I appreciate any help.

    Thank you!

    https://wordpress.org/plugins/qtranslate/

  2. rizwansaleem
    Member
    Posted 1 year ago #

    You can translate the widget and custom footer content by using the following pattern:

    [:de]text[:en]text

  3. giscist
    Member
    Posted 11 months ago #

    Hi matodoro,
    I am currently struggling with my language selector and saw on your site that you got to a super-nice result. Could you let me know how you did it ?

  4. matodoro
    Member
    Posted 10 months ago #

    Hi giscist,

    Thank you for the compliment.
    I created a new header template and put it into my child folder, then I put the following code where I wanted it to appear:

    <?php echo qtrans_generateLanguageSelectCode('text'); ?>

    And then the styling…

    Hope that helps,

  5. matodoro
    Member
    Posted 10 months ago #

    Hi rizwansaleem,

    This worked! Thank you so much!

  6. giscist
    Member
    Posted 10 months ago #

    Thank you for your trick.
    Could you tell me a bit more about your styling?
    I am struggling with it, not knowing how to word and where to put (I have very very small knowledge of all these things).
    As you did, I would like to differentiate the current language of the page and the other (or even hide the current language).
    And also : hide the other language when there is no translation...
    Thank you in advance!

  7. matodoro
    Member
    Posted 10 months ago #

    Install inspect element on chrome or firefox. Then you can see how I styled them.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic