Milada Posted November 4, 2016 Share Posted November 4, 2016 Dear all, I am Milada, a fresh newbie to WP. I am asking you for a help: set up a css code to customize my Genesis Child theme (Wellness Pro). Here is my blog address: http://moreyouthfulskin.com/en/home/ As you can see there is a menu, and besides on the right the languages. I would like to put the languages under the menu. I was told to create a new widget, which I did from these instructions: https://carriedils.com/add-widget-area-below-nav/ Then I added the Language switcher to that widget and it looks like you see: there are new flags ordered vertically and the horizontal ones persist. I would like the horizontal ones to persists, but need them horizontally under the menu. Here is a code used so far in my functions.php file: the code for a new widget: /** Register widget areas */ genesis_register_sidebar( array( 'id' => 'cta-1', 'name' => __( 'Call to Action #1', 'mp' ), 'description' => __( 'This is the call to action section.', 'mp' ), ) ); and the one that added the flags vertically: add_action( 'genesis_after_header', 'mp_cta_genesis' ); genesis_register_sidebar( array( 'id' => 'cta-1', 'name' => __( 'Call to Action #1', 'wellness' ), 'description' => __( 'This is the call to action section.', 'wellness' ), ) ); add_action( 'genesis_after_header', 'add_genesis_widget_area' ); function add_genesis_widget_area() { genesis_widget_area( 'cta-1', array( 'before' => '<div class="cta-1 widget-area">', 'after' => '</div>', ) ); } Can you please help me out of this problem, it persists for two weeks now already. Thank you very much! Milada Link to comment Share on other sites More sharing options...
dsonesuk Posted November 4, 2016 Share Posted November 4, 2016 .lang-item > a { display: inline-block; margin-bottom: 16px; position: relative; } .lang-item > a > img { bottom: -11px; left: 50%; ; position: absolute; } Link to comment Share on other sites More sharing options...
Milada Posted November 4, 2016 Author Share Posted November 4, 2016 Hallo dsonesuk, thank you. What I only need is to put the flags under the menu, centered. As if I clicked the Enter button in front of the first flag and put them on a following row. When I paste your code at the end of the functions.php file, a HTTP error 500 page appears. Where should I paste it then? Thank you in advance. Milada Link to comment Share on other sites More sharing options...
dsonesuk Posted November 4, 2016 Share Posted November 4, 2016 AGAIN! CSS NOT PHP! should be placed in themes css file OR custom file. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now