Layout: Sidebar

Sidebar Layout Overview #

Sidebar Layout #

There are two sidebars by default in GeneratePress that come with multiple layouts including:

  • Content / Sidebar
  • Sidebar / Content
  • Content (no sidebars)
  • Sidebar / Content / Sidebar
  • Sidebar / Sidebar / Content
  • Content / Sidebar / Sidebar

There are three different options you can find in Customize > Layout > Sidebars. These options apply to the entire site.

This setting refers to your regular pages.

Blog Sidebar Layout #

This setting is specific for your blog, archives, search results etc..

Single Post Sidebar Layout #

This setting is specific to your single posts, including blog posts or any kind of custom post type post.

Different sidebar layouts for individual pages and posts #

Some individual pages and posts might require a different layout than your global settings. In this case, you can use the Layout metabox while editing that page/post.

Default Widgets #

The search and archives widgets are added by default to fill the space when a sidebar layout is selected but no widgets are added in the sidebar widgets area. The two default widgets are removed automatically when you add the desired widgets in the sidebar widgets area.

If you want to remove the entire sidebar instead, then select Content (no sidebars) as explained above.

If you want to remove the default widgets but also keep the sidebar area, you can use the generate_show_default_sidebar_widgets filter.


Widget Padding #

You can adjust the spacing inside your sidebar widgets (padding) in Customize > Layout > Sidebars.

You can adjust either four sides of the widget, and the value is in pixels.

Note that this can be adjusted separately for desktop and mobile by using the toggle buttons.


Sidebar Widths #

Note: This option requires the Spacing add-on in GP Premium.

You can adjust the width of your sidebars in Customize > Layout > Sidebars.

The widths are percentage based, and the width of the content area is determined by the width of the sidebars.

Powered by BetterDocs