Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Using Bootswatch sub-themes with Grav's Bootstrap theme

Started by Muut Archive 9 years ago · 2 replies · 542 views
9 years ago

I am new to Grav and I am trying to use some of the Bootswatch sub-themes, but I am having some difficulties understanding how to do that. The base Bootstrap css seems to reside in the bootstrapper plugin at

TXT
user/plugins/boostrapper/css/boostrap.min.css

However, replacing that css file with the correspondent file for one of the bootswatch sub-themes does not seem to do anything.

What am I missing? Is there a cached version of the css file somewhere? (I have disabled the caching mechanism in the Admin panel)

9 years ago

replacing the file in the plugin should work, at least temporarily. The next time you update the plugin, your modification will get overridden with the plugin-provided file.

Best bet is to either include the bootstrap files directly in your theme rather than relying on bootstrapped to provide those.. That's just a 'quick-way' to get bootstrap loaded, but its not doing anything special. Simply adding the CSS and JS to the assets manager. You an do the same directly in your theme, usually in partials/base.html.twig

9 years ago

Hmm, it does not seem to work. At any rate, I am following your suggestion and will include the bootstrap/bootswatch files directly into my theme

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1334 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2938 9 years ago
Archive · by Muut Archive, 9 years ago
3 1111 9 years ago