- This topic has 16 replies, 4 voices, and was last updated 3 years, 7 months ago by Leo.
-
AuthorPosts
-
August 11, 2020 at 11:59 am #1397658Carsten
Hi there, in Customize, my Sidebar Layout is set to Content/Sidebar, but I want to exclude my register page, to be Content (no sidebars).
In my Register page, the Page Layout Settings is set to Content (no sidebars).
I might be able with some css to exclude a page from having sidebars, but what’s the idea of having the local page setting, if it has no effect over the general layout settings in the customize section?
Thanks!
August 11, 2020 at 3:03 pm #1397848LeoStaffCustomer SupportHi there,
Is the registration page a normal static page or an automatically generated page?
Can you disable the caching plugin for now?
August 12, 2020 at 1:10 am #1398283CarstenI don’t know the difference between a static page, and other pages, but there are no contents on the register page, its a custom link, so it has probably been auto generated by BuddyPress. But the page layout follow the setting in Customize>Layout, so I can’t see why it should not behave like a normal page.
August 12, 2020 at 6:22 am #1398743DavidStaffCustomer SupportHi there,
what happens to the sidebar on that page when you disable them in the Customizer ?
August 12, 2020 at 6:24 am #1398746CarstenHi there, then the page turn to content no sidebar, as the rest of the site, I just disabled sidebars now.
August 12, 2020 at 7:38 am #1398855DavidStaffCustomer SupportSo that proves the template is behaving correctly.
Is there a specific Display Rule for
Registration
orRegister
NOTPage > Registration
.August 12, 2020 at 8:14 am #1399087CarstenNot what I can see, I deactivated all my custom css, but same result.
I also created a layout element, choosing
Sidebar: Content (No Sidebars) and
Display Rules: Page: Register, but it did not do the trick either.It’s like the Register page does not respond to elements, I earlier tried to add a block element to the register page, but it does not display.
August 12, 2020 at 10:38 am #1399357LeoStaffCustomer SupportDo you have any other layout elements created?
August 12, 2020 at 12:47 pm #1399572CarstenYes I have, among these, a footer layout element, which are working well
August 12, 2020 at 1:00 pm #1399603LeoStaffCustomer SupportWhat if you disable all other layout element and only keeping the sidebar one activated?
August 13, 2020 at 12:49 pm #1401530CarstenI makes no difference.
I think it would be much easier, if you logged in and saw this issue by yourself, it would save much of our time, I think.
Thanks!
August 13, 2020 at 2:35 pm #1401671TomLead DeveloperLead DeveloperFeel free to send us login info: https://generatepress.com/contact
Just be sure to link to this topic.
Thanks!
August 13, 2020 at 3:25 pm #1401719LeoStaffCustomer SupportCan’t see anything obvious.
It is an automatically generated page though as there is no content in when I check in Edit page.
Can you try this PHP snippet and see if this works?
add_filter( 'generate_sidebar_layout', function( $layout ) { if ( is_buddypress() && bp_is_register_page() ) { return 'no-sidebar'; } return $layout; } );
August 14, 2020 at 1:08 pm #1403239CarstenHi there, I’m glad that you can’t find any obvious reason why it should not work. I think the page is automatically generated by BP, but never the less, it is listed as a page under Display rules location.
I think there is a general issue using elements with BP. It would be really nice if you could locate why elements does not output on BP pages!
Thanks for the code, I’m not able to test it before later this weekend, but I’m sure it fixes the sidebar issue.
Thanks!
August 14, 2020 at 2:06 pm #1403285LeoStaffCustomer SupportThe display rule sometimes can’t take care of all the conditions that are not commonly used, which is why we have the filter solution available.
Definitely let me know if the snippet solution works for you 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.