Closed (fixed)
Project:
Barrio Bootstrap 5 Theme
Version:
8.x-4.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2018 at 11:08 UTC
Updated:
28 Nov 2018 at 11:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
murzComment #3
nitrospectide commentedIf I understand you correctly, I think this is the same thing I ran into at one point. If you are seeing the layout styled properly under the main theme, I assume that you have gone into the settings for Bootstrap Barrio, and set the Load Library (at the bottom). Then, when you switch to the subtheme, the layout style disappears, and the plain, unstyled items just stack onscreen?
Go into the settings under the subtheme, and set the Load Library dropdown there, too. That should make it work.
Comment #4
murzThanks, this works, but too hard to find for newbies.
On default Barrio theme Bootstrap is loaded by default, without any additional actions.
Can you enable this feature by default for packaged subtheme too?
Comment #5
nitrospectide commentedI'm just a user - this isn't my project... but I am actually looking at how to alter the default settings in the THEME.settings.yml for something else. That may provide a path for a patch on this, too.
Comment #6
nitrospectide commentedImportant note: If you are a Drupal newbie, most modules and themes have settings you will want to check after you install. If you keep that in mind, it will save a lot of headaches as you go.
Comment #7
nitrospectide commentedI have rolled a patch that addresses a few things related to this issue.
1 - Local library now defaults to "Local minimized (production)" on both the main and included subtheme. While people may want a different setting, at least this will make the themes work out of the box, and not seem broken.
2 - I copied the settings.yml from the main theme to the subtheme so that when it is enabled, it has the same settings... this seems more like expected behavior, than to have the subtheme arbitrarily change certain things in the look/feel just because you switch to it. I think the defaults for the main theme should be the starting place for the subtheme, and people can adjust from there.
3- I corrected a typo in one of the setting titles, and changed it to conform to the conventions of the other settings. Under Components > Navbar, the last item was called "Backgroun Navbar" with the missing 'd'. I added the d and switched it to 'Navbar Background' to be consistent with the naming convention on the other settings.
4- I tweaked the setting for Layout > Sidebar First Layout to be 4 cols instead of 3, since it's much more common these days to have a 1/3 sidebar, 2/3 content layout (4 cols + 8 cols). This is a judgment call, but I think it makes sense. It's up to you.
Comment #9
hatuhay commentedComment #11
muthusaravanan commentedFIXED: Need to enable the bootstrap library for your theme.
1. Go to admin/config/development/bootstrap_library in you site.
2. In THEMES VISIBILITY section select you sub-theme.
Comment #12
Infoloko commented#11 .. admin/config/development/bootstrap_library does not exist