[Resolved] header configuration – logo menu and widget

Home Forums Support [Resolved] header configuration – logo menu and widget

Home Forums Support header configuration – logo menu and widget

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #399471
    Ketil

    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.

    #399579
    Tom
    Lead Developer
    Lead Developer

    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' );
    }
    #399587
    Ketil

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

    #399600
    Tom
    Lead Developer
    Lead Developer
    #399613
    Ketil

    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

    #399732
    Tom
    Lead Developer
    Lead Developer

    Did you make sure to activate the code snippet?

    #399828
    Ketil

    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.

    #400077
    Tom
    Lead Developer
    Lead Developer

    Try adding this CSS now:

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

    Yes, that worked, thanks!

    #400348
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.