Site logo

Archived topic

header configuration - logo menu and widget

9 replies · Started by Ketil on October 8, 2017

Viewing posts 1–10 of 10

Hello. I have set up the site header area with the menu floating to the right, 20 px height.
I'm using a small logo added from "customize". The menu appears to the top right of the contained header area. The icon is heigher than menu, and this leaves an empty area below the menu, over the content.
I would like to put header-widgets in this area, but they are placed above the menu as default.
Any way I can place them below instead? I'll put a screenshot in the mail to show what I mean.

Try adding this PHP:

if ( ! function_exists( 'generate_header_items' ) ) {
	function generate_header_items() {
		generate_construct_site_title();
		generate_construct_logo();
	}
}

add_action( 'after_setup_theme', 'tu_move_header_widget' );
function tu_move_header_widget() {
    add_action( 'generate_after_header_content', 'generate_construct_header_widget' );
}

In header.php, or one of the theme-files?

http://wp.kuldetech.no/
I've added the work "her" to show widget.
Added your code with code snippets, cleared cache, but still appears above the top menu

Did you make sure to activate the code snippet?

I didn't go under, but popped to the left of menu. would add screenshot, should I send in mail?
Can look at wp.kuldetech.no, but I might remove the FB-icon if client reacts to placement.

Try adding this CSS now:

.header-widget {
    clear: both;
    margin-top: 10px;
}

Yes, that worked, thanks!

You're welcome :)

This archived topic is closed to new replies.