• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Add Header Left Widget In Genesis

Last Updated on July 20, 2019 Favorited: 0 times

This tutorial provides the steps to add a header left widget area in Genesis. You can also enable Header right widget in Genesis.

STEP 1

Register a left-widget area for site header in functions.php

//* Register a `header-left` Widget area in functions.php
genesis_register_widget_area( array(
	'id'          => 'header-left',
	'name'        => __( 'Header Left Section', 'designody' ),
	'description' => __( 'This is a Header Left widget area.', 'designody' ),
) );

STEP 2

Display the left-widget in site header with priority in functions.php

//* Add the `header-left` widget using Genesis Hook and Display it for me.
add_action( 'genesis_header', 'dy_header_left_widget_content_5_9', 5 );
function dy_header_left_widget_content_5_9() {
  genesis_widget_area ('header-left', array(
        'before' => '<div id-"header-left" class="header-left in-header"><div class="wrap">',
        'after' => '</div></div>',
  ) );
}

Use some CSS to move it to left. To have More control Over widget position, Read Widget section in site header in Genesis.

Done.

Related Posts

  • Convert Search form into the widget area in Essence Pro theme
  • Slide in-out Menu in left, Title Area Logo in center and header widget in Right in Genesis Sample
  • Slide in-out Menu in left, Title Area Logo in center and header widget in Right forever in Genesis Sample
  • Primary menu in left, Logo in Center and Search widget in right in Genesis Sample
  • Enable Header Right Widget in Genesis

Categories: Free Content, Genesis Tutorials Tags: header right, header widget, header-left

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service