First, many many thanks to Juggledad and Flynn for your incredible dedication to this wonderful theme and the forum.
I am working on this site,
The Bilingual Psychologist. I am running the latest versions of WP, Atahualpa and the WPML plugin (WP Multilingual language selector).
I would like to move the country flags and their description, from the right sidebar to the upper right hand side of the page, just outside the main layout i.e. to the right of the "Home" link and to the right of the drop shadow around the main layout.
The country flags and their description can be easily reproduced as is with the following PHP code:
Code:
<?php do_action('icl_language_selector'); ?>
I don't know how to code but I can fiddle around alright with ATO settings and copy-pasting code. To solve my problem, I have already tried the following:
(1) Creating a widget area (ATO>Sidebar & Widgets>Add new Widget Areas) outside the main layout and then using the Exec-Php plugin. Unfortunately it doesn't seem possible to define a widget area outside the main layout (which makes absolute sense
)
(2) Adding the above PHP code to "HTML inserts: body top" (ATO>Various content items/Add HTML/CSS inserts).
Solution (2) seems to be in the right direction to me. I tried inserting the following
Code:
<a style="float:right" href="http://www.thebilingualpsychologist.com">Test</a>
and I got a link on the top line, and more or less in the right area of the screen (hurray).
My question therefore:
- Is solution (2) the right way to go, and if so, is it possible to insert PHP code within HTML tags, if so which tags?
- If PHP code inserted within HTML tags works, apparently "float:right" moves everything all the way to the right. How to do I control how far right the elements go?
- If solution (2) is not the right way to go, any ideas to achieve what I'm looking for?
Thank you so much if you read this far.