JavaScript
Take advantage of the Bootnews past, current and future updates, by learning how to create your own content without changing the core styles of Bootnews.
How to create a new Javascript?
To avoid file loss, overrides of your custom styles or any other conflicts during the upgrade process, create or modify your custom javascript in assets/js/theme.js
file.
Custom files must be included in follwing code.
const myCustom = function () {
// insert your javascript in here
}
Paste your javascript code after line Custom: function () {
Bootnews Javascript
Want to remove javascript from theme.js
?
Editing following code
/**
* ------------------------------------------------------------------------
* Launch Functions
* ------------------------------------------------------------------------
*/
myBacktotop();
sub_dropdown_js();
myMobile();
myOpen();
myScrollUp();
mySuggestion();
myCloseSuggestion();
myLazyload();
mySticky();
myVertical_tabs();
myBootstrap();
myCustom();
})();
Just delete one function from this code, example myBacktotop();
or sub_dropdown_js();
You also can add new functions in here