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?


 
Prev Previous Post   Next Post Next
  #1  
Old May 27, 2013, 06:25 AM
Carme
 
60 posts · May 2012
Brighton
Send a message via Skype™ to Carme
Change vertical language selector in the configuration panel of Atahualpa?

Hi,
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.

http://carme.karmeba.com/

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');
if(!empty($languages)){
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,

carme
 

Bookmarks



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 07:08 AM
Add WPML language selector above search box pickertgmbh Header configuration & styling 1 Jul 6, 2011 07:07 AM
Dynamic textarea in atahualpa configuration panel not working wayofspark Atahualpa 3 Wordpress theme 1 Aug 29, 2010 04:59 PM
How to change the header rotation configuration manually nesua Header configuration & styling 2 Aug 25, 2010 11:02 PM
Put the qTranslate language selector into the header or page menu DarrenNI Header configuration & styling 1 Jun 19, 2009 04:01 AM


All times are GMT -6. The time now is 07:54 PM.


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