Force full-width layout with Genesis and CPTs

I needed to force a full-width-layout on my single custom type page. After a bit of trial and error, I ended up with this code:

Just replace CPTNAME with your custom post type name and you’re good to go.

5 Comments

  1. Amber @ Au Coeur Design on September 8, 2014 at 2:31 pm

    Great snippet, thanks!

  2. Darryl on February 26, 2015 at 5:05 pm

    Perfect, thanks so much!

  3. Amy Stout on May 18, 2016 at 11:22 am

    This is great what; but I’m wondering … what if you have more then one CPT that you want to force full width??

  4. Dave Kuhar on May 24, 2016 at 1:59 pm

    Honestly, the easiest thing to do would be to create a second function; just change CPTNAME to match your second CPT. You could do it all in one function by creating an array and checking against it, but I don’t have time to write it up and test it right now.

    • Amy Stout on August 17, 2016 at 8:23 pm

      Ok great I understand 😉 Thank you for the reply!

Leave a Comment