• 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

Genesis Full Width Layout For Password Protected Posts

This code enables you to force a full width layout on single posts which are password protected in Genesis.

Once the user enters the correct password, the post reverts to the default layout which would generally be content sidebar so it only displays full width when the password form is displayed.

Using a code editor, add the PHP to the end of your child themes functions.php file.

Based on the following question from a member of the Genesis community :

I want to hide the sidebar on my pages that are password protected by WordPress. Why is this not working in my functions.php file? I think I’d like to remove the sidebar so that my password login appears centered.

Layout

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