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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Remove Theme Support For Specific Genesis Structural Wraps

Some Genesis child themes includes support for structural wraps in the child themes functions file.

The PHP code looks something like the following code and applies to your entire site:

//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
	'header',
	'nav',
	'subnav',
	'site-inner',
	'footer-widgets',
	'footer'
) );

This code can prevent you from displaying your background full width on specific pages like landing and front page templates.

The code also effects your entire site which is not ideal if you want full width background images and color to extend the entire width of your screen.

Simply add this line of PHP code to the file you need to modify.

Register for full access


This will only remove the site inner class from a specific template rather than your entire site.

Before Removing Site Inner

not full width

After Removing Site Inner

remove site inner

Video Demo

Once added to your front-page.php file, this code removes the site-inner class enabling you to display your background images and background colors full width outside the wrap.

Tested on the Remobile child theme by StudioPress and a Modified version of Eleven40 Pro.

Reader Interactions

Comments

  1. George says

    December 6, 2014 at 6:05 pm

    Just got your newsletter! Don’t tell me this post is inspired from my question at Studiopress forums? Awesome! Many thanks Brad!

    Log in to Reply
    • Brad Dalton says

      December 7, 2014 at 3:11 am

      Hey George

      I was trying for hours to figure out how to remove the site inner class from the front-page.php file of Eleven40 Pro because it was stopping the background extending full width.

      Never seen this function before so its good to learn about a new solution.

      Its for my new front page on my own site.

      Log in to Reply

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.