Sidebars

Changing layout sidebars with a hook

Hello. I’m trying to change the layout in a particular page using this code in functions.php function dom_barra_en_especialidades( $layout ){ if ( is_page('the-slug') ){ return 'left-sidebar'; } else { return $layout; } } add_filter( 'generate_sidebar_layout','dom_barra_en_especialidades' ); The default setting is to Content with no sidebars, but I want the left sidebar in that page. I’m … Read more

Front Page with only Right and Left Sidebars

Trying to create front page with just right and left sidebars (also header and footer of course) without content area. I played with Front-page.php and used the code below: add_filter( ‘generate_right_sidebar_width’, ‘generate_custom_right_sidebar_width’ ); function generate_custom_right_sidebar_width() { return ’25’; } add_filter( ‘generate_left_sidebar_width’, ‘generate_custom_left_sidebar_width’ ); function generate_custom_left_sidebar_width() { return ’70’; } As soon as I increase the … Read more

Remove indent/padding on featured images (masonry)

My posts’ home page is set up using masonry in 2 columns. The right (and only) sidebar also displays related posts. In the Customizer (Layout/Blog), I’ve set featured images to appear as follows: Location: Below title Alignment: Left These settings apply to archives, posts, and pages. My problem is that on the Posts page and … Read more

removing sidebars from custom post types

I am new to filters and am hoping you can help me adjust this code before I add to php. Using GP 2.0. I intend to remove sidebars from 4 custom post types. add_filter( ‘generate_sidebar_layout’,’​​km_custom_post_sidebar_layout’ ); function km_custom_post_sidebar_layout( $layout ) $post_type = get_post_type( $post_id ); if $post_type is ​’​​​sfwd-courses​’​, ​’​sfwd-lessons​’​, ​’​sfwd-quiz​’​ or ​’​sfwd-certificates​’​; return ‘no-sidebar’; … Read more

Sidebars Widgets

Hey Guys 🙂 i have trouble with my sidebars…every Time I’m allow sidebars – automatically the search widget and archive Widget is activated an I can’t prevent that. I look in Customizer-widgets-settings and Designs-Widgets-settings, nothing found. But if I activated a random Widget on the left or right sidebar, these two Widgets gone. Where is … Read more

Changing colour of sidebar backgrounds?

Hi, I’m just wondering if there is any way to change the background colour of just a sidebar (in one container)? I mean the whole sidebar background, not just the widget backgrounds? Thanks! Paul

Sidebar for Custom Post Types

How do I create a sidebar for a custom post type single page? I’m using WPSP to loop out a custom post type listing page. When you click the read more button on the listing page it takes you through to a single detail page for that custom post type, which in this case is … Read more

No sidebar on home page

Hello. I’ve read through some of the replies on this topic but couldn’t find the specific resolution to simply not being able to get a right (or any) sidebar to show up on a plain, non-commerce, non-blog, static home page. By adding a widget, I managed to get the right sidebar to show up on … Read more

Sidebar changes

Hello, Tom, Thanks for this theme and the addons. So far, it’s been a breeze to install and work on it. I know content in sidebars can be changed from page to page but I cannot figure out how or where to do this. I am using the sidebars to place ads according to the … Read more