Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Change vertical language selector in the configuration panel of Atahualpa?


  #1  
Old May 27, 2013, 07:25 AM
Carme
 
60 posts · May 2012
Brighton
Send a message via Skype™ to Carme
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
  #2  
Old May 27, 2013, 07:46 AM
lmilesw's Avatar
lmilesw
 
10,173 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.

Bookmarks

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 01:01 AM.


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