How to rid core or theme bootstrap files

Without messing with libraries
on Thursday 24 October 2019
comments: 0

If you need to use your own bootstrap version and core or theme bootstrap files are still loaded, you can override them with theme_library.php file.

More information is in this issue: https://github.com/e107inc/e107/issues/1725

But I would use this only for changing jquery version nothing more. Too complicated in my opinion.

The easy and simple way is:


- check theme.xml file and look for element libraries. Delete it.  It looks like this.  This is way how e107 loads bootstrap itself without theme.php control. 

<libraries>
<library name="bootstrap" version="3" scope="all"/>
<library name="fontawesome" scope="all"/>
</libraries>


- check theme.php and look for e107::library() and delete it. This is way how your theme loads bootstrap files from library.

e107::library('load', 'bootstrap');
e107::library('load', 'fontawesome');


Then you can add your own files simply with e107::css() and e107::js()

For example, Hestia is using customized bootstrap, so it is loaded from the local folder.  With CDN just use a parameter for an external source.

e107::css("theme", "assets/css/bootstrap.css");
e107::css("theme", "assets/css/hestia.css");

0 Comments

Latest Downloads

JM Download plugin 1.2
in Category: JM Download plugin

JM Download plugin 1.2

3 weeks ago

Plugin for extending the core Download plugin. Version 1.3 on Github Replaced JM_Download plugin, Latest Releases by Father Barry,  Top Downloads menu by SecretR, AACGC Download Tracker by M@CH!N3 V 
Read more..

JM Download plugin 1.2
JM Core plugin 1.6.0
in Category: e107 plugins

JM Core plugin 1.6.0

1 month ago

The version used on this site. It fixes some core limitation via the plugin, no core changes. Check Readme at first.  Version 1.6.1 on github What is inside? - fix for missing titles in the m 
Read more..

JM Core plugin 1.6.0
ReCaptcha plugin 1.3
in Category: ReCaptcha plugin

ReCaptcha plugin 1.3

1 month ago

No CAPTCHA reCAPTCHA Captcha replacement for e107 v2.2 or higher with shortcodes.  Added shortcodes for replacing contact secure image shortcodes. Possibility to hide it from logged users.
Read more..

ReCaptcha plugin 1.3