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

WP SITES

2787

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Custom Div Container Before And Or / After Opening & Closing Div In Genesis

This code enables you to add a container before and after any existing hook or content. In this case it opens the div before the entry-content div and closes it before the same entry-content div as seen in the following screenshot :

Inspect Genesis HTML

The code enables you to open the container before or after any existing genesis hook/div and close it before or after any existing genesis hook/div.

You can add the code to your child themes functions file and use a conditional tag to control which templates the code executes on or add it without the conditional tag directly to any template using the WordPress Template Hierarchy.

Download Folder

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.