Multilingual logo

WordPress theme dedicated to start-up websites with amazing CSS3 animated icons, price tables and parallax effect background.
GK User
Wed Apr 16, 2014 1:16 pm
Hi,
We have implemented multiple languages (french/english) in our Simplicity themed WP web site using WPML. How can I get the header logo (top-left) to appear based on the selected language?

My company site is here: http://mydevpartner.com/

Regards,

Sylvain Audet
CEO MyDevPartner.com
User avatar
Fresh Boarder

GK User
Wed Apr 16, 2014 3:01 pm
Hello,

You'll have to edit Simplicity/layouts/header.php file - this fragment is responsible for displaying the logo:

Code: Select all
<?php if(get_option($tpl->name . "_branding_logo_type", 'css') != 'none') : ?>
            <h1>
               <a href="<?php echo home_url(); ?>" class="<?php echo get_option($tpl->name . "_branding_logo_type", 'css'); ?>Logo"><?php gk_blog_logo(); ?></a>
            </h1>
            <?php endif; ?>


and you should use ICL language code with condition and load the logo depends on language.

Please check this thread on the WPML forum:
http://wpml.org/forums/topic/using-icl- ... -headings/
User avatar
Moderator


cron