• 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

How To Wrap Widget Areas in a Div Class

This tutorial provides the code which enables you to display widgets in columns and wrap them in a containing div class like this:

wrap-widgets

This way you can style the container containing all widgets.

Tested on the Genesis Sample child theme by StudioPress.

You can use this solution for any templates which contain widgets displayed inline, columns or any other use of multiple widgets you need to wrap in a custom div class.

Here’s the PHP & CSS code you simply wrap your widgets with:

Register for full access

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.