Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Languages & Translations »

Change vertical language selector in the configuration panel of Atahualpa?

Old May 27, 2013, 07:25 AM
60 posts · May 2012
Send a message via Skype™ to Carme
I added in the site I am doing a WPML plugin.
I have the language selector already in a header widget I created for that.
The plugin gives me only the option of a vertical language selector.


I asked them How can I change the vertical language selector to a horizontal one?
Here the answer:

ANSWER: Copy the following code into your theme's functions.php file.

function language_selector(){
$languages = icl_get_languages('skip_missing=0&orderby=code');
foreach($languages as $l){
if(!$l['active']) echo '<a href="'.$l['url'].'">';
echo '<img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" style="margin:1px; border:1px solid #333;"/> '.$l['native_name'];
if(!$l['active']) echo '</a>';

Then give the call to function language_selector() wherever you want to make it appear in header.php file

<?php language_selector(); ?>

MY question is:
There is any way I can managed to get a horizontal language selector in my header doing that in the configuration panel of Atahualpa, without changing code in PHP.

Any help will be really appreciated,

Old May 27, 2013, 07:46 AM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
I think the Code Snippets plugin let's you add to the functions.php virtually.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a language selector (WPML) above Search Box ? how? bender57 Header configuration & styling 2 Jul 6, 2011 08:08 AM
Add WPML language selector above search box pickertgmbh Header configuration & styling 1 Jul 6, 2011 08:07 AM
Dynamic textarea in atahualpa configuration panel not working wayofspark Atahualpa 3 Wordpress theme 1 Aug 29, 2010 05:59 PM
How to change the header rotation configuration manually nesua Header configuration & styling 2 Aug 26, 2010 12:02 AM
Put the qTranslate language selector into the header or page menu DarrenNI Header configuration & styling 1 Jun 19, 2009 05:01 AM

All times are GMT -6. The time now is 09:02 PM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.