Jump to content

CSS code for flags under the menu, not beside it


Milada

Recommended Posts

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

post-202875-0-01282500-1478260383_thumb.jpg

Link to comment
Share on other sites

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

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
×
×
  • Create New...