• Resolved riolam

    (@riolam)


    I’m using the theme “Opta”. It has the option where you can alter the text in the footer through Customize.

    In the Fields Setting of Globus in Customize, I marked the Footer Text as multilingual. But when I entered the text, English and Vietnamese, in the Footer Text section, it displayed both version in the same page (for example: {:en}or please use our contact form{:}{:vi}ho?c s? d?ng m?u liên l?c c?a chúng t?i{:}).

    Please help me to fix this.

    • This topic was modified 5 years ago by riolam.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    Thread Starter riolam

    (@riolam)

    @alexgff, thank you so much for your quick respond. I’m following the guidelines.

    • This reply was modified 5 years ago by riolam.
    • This reply was modified 5 years ago by riolam.
    Plugin Contributor Alex Gor

    (@alexgff)

    Please look carefully at the screenshot on https://wpglobus.com/extensions-archive/multilingual-texts-in-wordpress-theme-options-panel/.
    You’ll see red arrows, that tell you that you should add option name ( no value ),
    in your case option is ‘theme_mods_opta-wp’.

    Thread Starter riolam

    (@riolam)

    @alexgff : it works wonderfully. However, I have another issue.

    I want to hide the current language in the language switcher. I’ve tried this in the Custom CSS but it didn’t work.

    .wpglobus-current-language {
      display: none;
    }

    I have read several threads but haven’t been able to find a solution.

    Plugin Contributor Alex Gor

    (@alexgff)

    Try this rule

    
    .wpglobus-current-language {display:none !important;}
    
    Thread Starter riolam

    (@riolam)

    Thank you a lot, @alexgff. It worked!

    One more question if you don’t mind. When I am on the Vietnamese version, I click on the top logo and it switches to the English version. Is there any way to localize the path from the logo to the homepage?

    • This reply was modified 5 years ago by riolam.
    Plugin Contributor Alex Gor

    (@alexgff)

    You can use the function localize_url to get url for current language

    Thread Starter riolam

    (@riolam)

    Could you kindly instruct me how to use the function? Do I need to upload the file class-wpglobus-utils.php to somewhere or copy the code, etc. Thanks a lot

    Plugin Contributor Alex Gor

    (@alexgff)

    You should find place in your theme header (usually file header.php )
    and add code that generate URL for header logo, for example
    you have string
    $logo_url = home_url();
    then you should add
    $logo_url = WPGlobus_Utils::localize_url($logo_url, WPGlobus::Config()->language );

    Don’t forget about child theme

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error: Display both languages in the footer text section’ is closed to new replies.