• Resolved naerey

    (@naerey)


    Using free guardian 2.5

    Is it possible to integrate qTranslate for the home page?
    I have successfully translated text widgets, menu and pages, but can’t figure out how to translate the static home page (slider, service).

    Any suggestions?

    Thanks)

Viewing 1 replies (of 1 total)
  • Thread Starter naerey

    (@naerey)

    I modified the front-page.php file and enclosed all fields with the function __() and then in the Appearance > Customise > Guardian Options > Theme Slider Options fields, wrote [:en]Text in english[:it]Text in italian[:]

    Thus,

    esc_attr($wl_theme_options['slide_btn_text'])

    becomes

    __(esc_attr($wl_theme_options['slide_btn_text']))

    and

    Text in english

    becomes

    [:en]Text in english[:it]Text in italian[:]

    And it’s all working good!

    I’m sure there is a better way, but I’m not knowledgeable enough.

Viewing 1 replies (of 1 total)
  • The topic ‘qTranslate integration for home page’ is closed to new replies.