Jump to content
Sign in to follow this  
peters_publishing

WPML Language Selector in PlatformPro Header Solution

Recommended Posts

Simon

Thats brilliant, what was the actual solution, seems its a closed forum.

Share this post


Link to post
Share on other sites
peters_publishing

Here it is:

In your pagelines theme functions.php insert:
add_action('pagelines_before_branding_icons', 'add_language_selector');
	
	function add_language_selector(){
	do_action('icl_language_selector');
	}
Then just use some CSS to align the selector exactly in the place where you want it. For example, in style.css i added:
#lang_sel {
	position: absolute;
	top: 50px;
	right: 0px;
	}
	

That should do the job. BTW you better use child themes, to not modify the original theme.

Share this post


Link to post
Share on other sites
EvaB

Hi, I also found this solution but when I tried it, everything stopped. I have uploaded the functions.php to start from scratch. Can you please tell me where I exactly I have to insert the code? Thanks, Eva

Share this post


Link to post
Share on other sites
peters_publishing
Hello Eva, it's been a while since I've logged on. Here's what my code looks like: require_once(STYLESHEETPATH . "/advanced.php"); // ==================================================== // = YOUR FUNCTIONS - Where you should add your code = // ==================================================== add_action('pagelines_before_branding_icons', 'add_language_selector'); function add_language_selector(){ do_action('icl_language_selector'); } // ADDING CUSTOM SECTIONS ------- // Good luck!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×