How to reproduce the problem:

1. Install Barrio theme using Drupal 8.x UI
2. Set as default Bootstrap Barrio 8.x-4.7 theme, you site will styled via Bootstrap normally.
3. Set as default Bootstrap Barrio Subtheme 8.x-4.7 theme, you site will lost all Bootstrap styles.
4. Set back as default Bootstrap Barrio 8.x-4.7 theme - styles will go back!

How to enable Barrio Subtheme with included Boostrap library styles?

Comments

Murz created an issue. See original summary.

murz’s picture

Issue summary: View changes
nitrospectide’s picture

If 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.

murz’s picture

Thanks, 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?

nitrospectide’s picture

I'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.

nitrospectide’s picture

Important 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.

nitrospectide’s picture

I 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.

hatuhay’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

muthusaravanan’s picture

FIXED: 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.

Infoloko’s picture

#11 .. admin/config/development/bootstrap_library does not exist