• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Add Utility Bar Before Site Header Removed On Scroll – Eleven40 Pro

This code adds a 2nd header before the default header. The 2nd header includes a clickable logo, smaller than the default header image as well as a search form.

Desktops – On desktops ( Above 960px width ), the smaller logo is positioned to the left, centered above the default header image and the search form is positioned to the far right, all within a custom structural wrap.

On scroll, the bar is removed :

On Scroll, remove utility bar

Mobiles – In this case, on mobiles ( less than 960px width ), both the smaller logo and the search box are centered, however, the CSS enables you to change the order of these elements at any screen width.

Watch the following demo video to learn how it works :

Demo Video #

Shows the bar displaying and then removed on scroll. Shows the bars elements repositioned and centered on mobiles.

Written and tested for the Eleven40 Pro child theme by StudioPress.

Note : Includes code to remove the bar on mobiles.

Code Installation #

There’s 4 steps :

Step 1 – Copy & paste the PHP code from the functions file to the end of the Eleven40 Pro themes functions.php file.

Register for full access

Related Tutorials

  • Before Header Utility Bar In Monochrome Pro
  • Scroll Remove Utility Bar Before Header In Genesis Sample Theme
  • Menu Bar Before Header Which Displays Smaller Logo On Scroll

CSS Grid Columns Custom Logo Eleven40 Pro Theme jQuery Scroll

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.