This topic has 8 replies, 2 voices, and was last updated 9 years, 6 months ago ago by Eva Kemp
Hi.
How can I put WPML language switcher on the top right corner, on the left of the search icon.
I’m using Child Theme.
Thanks.
Hello,
In this case you have to edit header-structure.php file in wp-content/themes/woopress/headers directory (what file to use depends on the header type you selected in Theme Options > Header) and add WPML code to the needed place.
Regards,
Eva Kemp.
Can I copy the PHP file to be edited in my Child Theme?
Hello,
Please provide us with FTP and wp-admin panel credentials in Private Content.
Thank you.
Regards,
Eva Kemp.
OK, Thanks. 🙂
Hello,
I’ve copied the file header-structure-1.php to the directory /promo/wp-content/themes/woopress-child/headers and added the code <div class="languages_switcher"><?php do_action('icl_language_selector'); ?></div>
in line 58. Also I’ve added this code in your child style.css:
.languages_switcher {
width: 100px !important;
float: right !important;
margin-top: 20px !important;
}
.languages_switcher #lang_sel_list li {
padding-right: 10px !important;
}
Also I’ve added to the code in header.php file in your child theme to show language switcher in the fixed header.
Please check the site now.
Regards,
Eva Kemp.
Great support!
I’m a really satisfied buyer. 🙂
Thank you very much, Eva.
Hello,
You’re welcome.
Regards,
Eva Kemp.
Tagged: drop-down language switcher, search icon, templates, top-right, woocommerce, wordpress, wpml
The issue related to '‘WPML drop-down language switcher near top-right Search icon’' has been successfully resolved, and the topic is now closed for further responses