Theme without boostrap

Post Reply
melbournevijay
Posts: 1
Joined: Tue Jan 14, 2020 6:16 am

Theme without boostrap

Post by melbournevijay » Tue Jan 14, 2020 12:50 pm

WonderCMS is awesome and easy to use.

I was able to follow the 8 easy steps to create a theme.

However, I noticed that the settings dialog is completely broken in the absence of bootstrap css and js.

I like to keep my sites lightweight.

Do you have a theme without bootstrap? OR Is it possible to only load jquery and bootstrap css and js when logged in?

Many thanks, Vj

User avatar
StephanStanisic
Support/Developer
Posts: 18
Joined: Fri Jul 05, 2019 8:51 pm

Re: Theme without boostrap

Post by StephanStanisic » Tue Jan 14, 2020 3:40 pm

Hey melbournevijay,

Welcome to the WonderCMS community!

Awesome question, this is a problem I've found before. I made a skeleton for a bootstrap-less theme on github:

For normal themes:
https://github.com/StephanStanisic/_empty

For single page themes:
https://github.com/StephanStanisic/_single

These themes include bootstrap just on summernote, summernote-air and the admin panel.

Let me know if this helps!

(These skeletons are really a WIP, any modifications/pull requests are happily welcome!)
wonder.stanisic.nl • My WonderCMS creations
stephanstanisic.nl • My personal site

wiz
Admin
Posts: 413
Joined: Sat Oct 30, 2010 12:23 am

Re: Theme without boostrap

Post by wiz » Tue Jan 14, 2020 7:28 pm

Stephan you ROCK!

Would it make sense to implement something like a check mark in the "Settings" panel that would disable Bootstrap and jQuery for visitors? Possibly two, for disabling Bootstrap and/or jQuery separately?

Post Reply