-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenLab Theme- Subsites with a sticky header leaves gap #324
Comments
Thanks for the report. We have noticed this on the City Tech OpenLab project in the past (internal link: http://redmine.citytech.cuny.edu/issues/2710) The underlying problem is that WP's toolbar is fixed, so that it always remains at the top of the viewport when scrolling. Themes are then developed to expect this behavior. The CBOX-OL toolbar is not fixed (and if it were, it would be a slightly different height). Unfortunately, there is no great fix for this, aside from a rebuild of the CBOX-OL toolbar that gives it the same dimensions and behavior as WP's toolbar. This may be something we pursue in the future, as our customizations lead to other problems; see eg #321. For now, the best I can suggest is theme-specific fixes. For example, in the case of twentyseventeen:
|
Thank you for your reply. I didn't realize that it was related to the collapsing issue I reported recently. I would be supportive of a variety of solutions, including making the openlab toolbar behave more like core WordPress. It is simultaneously a small issue and yet, pretty prominent of an issue if our goal is good looking portfolios for students. |
Thanks for the report @ajeannette. I think that what's happening here is that there are too many elements in the toolbar, and it's causing the 'Hi, Amanda...' section to pop down to a second line. To confirm this, I recommend either (a) disabling WPForms temporarily (which should remove the WPForms button, which should in turn allow the toolbar items to fit in the allocated horizontal space), or (b) use your browser's console tool to hide one or more items on the toolbar (such as the WPForms button) If my hunch is correct, then there aren't a lot of clear ways for CBOX itself to address the issue, especially when the buttons are added by non-CBOX plugins like WPForms. If this plugin in particular is posing problems across your network, it might be possible to write a bit of code that will specifically target it, by removing that button whenever the plugin is activated. |
Hi Boone, In Vanilla Wordpress, the Black toolbar doesn't expand to become multiline if there is an overflow. So in the image above, although it is not ideal that the text has overflowed the container, it visually doesn't stop the site from working or cover headers or controls. I'm going to say something that might sound a little hyperbolic, because a little gap in the header or header misbehaving doesn't seem like a big deal, but I actually believe that the header right now is one of the biggest issues in OpenLab. Other features are nice, but at its core, what we want students to be able to do is making really great-looking websites, and any issue with the header, however small sticks out like a sore thumb. Amanda and I have really enjoyed collaborating with the OpenLab team, and we would love to talk about, brainstorm what some solutions might look like. I was thinking of possibilities, but in my head those all involve make the OpenLab Header more like the default Wordpress toolbar behavior: Making it sticky so the offset required for the page is predictable. I know those students really work hard on the visual look of their pages, and I hate any little blemish that they can't control. |
True. But by the same token, many of the buttons that cause the overflow for logged-in admins will not appear for logged-in non admins, or for non-logged-in visitors. An easy way to hide the toolbar for non-logged-in users feels like a fairly obvious win. Building an admin tool that will allow this involves a bunch of UX decisions, but in the meantime you can do it in an mu-plugin as follows: add_filter(
'show_admin_bar',
function( $show ) {
if ( ! cbox_is_main_site() && ! is_user_logged_in() ) {
return false;
}
return $show;
},
1000000
); This disables the toolbar for all logged-out users, except on the main site, where it's a more critical part of the layout. |
When using a theme that has a Sticky Header, OpenLab pushes the sticky header down the page in a way that is a little awkward, creating a gap between the top of the page and the floating menu.
Some examples from oneonta.sunycreate.cloud:
Twenty Seventeen theme:
Fluida theme:
I'm pretty sure that this is affecting every theme, including core WP themes and contributed community themes.
The text was updated successfully, but these errors were encountered: