Go To _variables.scss (assets/scss/_variables.scss )
if you want to change another font-family Go to the site Google Fonts And Select One font Family and import In to style.css file
Example:
And paste Your Selected font-family in _variables.scss i.e (root:-assets/scss/_variables.scss)
Example:
Before : @import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700,900&display=swap');
After : @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
And add the Your Selected font-family in _bootstrap-styles.scss(assets/scss/bootstrap/_bootstrap-styles.scss)
Example:
body {
margin: 0;
font-family: 'Roboto', sans-serif;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.5;
color: $color;
text-align: start;
background-color: $white;
}
Go To "assets/images/brand" folder and replace your logo with Previous Logos within in image size. Note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file
and remove
comments for html.setAttribute("dir" , "rtl")
to
enable RTL
version.
//LTR to RTL
if (!localStorage.getItem("flairartl")) {
// html.setAttribute("dir" , "rtl") // for rtl version
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file
and remove
comments for html.setAttribute("data-theme-color" , "light")
to
enable Light Theme.
//Light Theme Style
if (!localStorage.getItem("flairalighttheme")) {
// html.setAttribute("data-theme-color" , "light") // for light theme
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file
and remove
comments for html.setAttribute("data-theme-color" , "dark")
to
enable Dark Theme.
//Dark Theme Style
if (!localStorage.getItem("flairadarktheme")) {
// html.setAttribute("data-theme-color" , "dark") // for Dark theme
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file
and remove
comments for any data-menu-style
to
enable Menu Styles.
//Menu Styles
if (!localStorage.getItem("flairaMenu")) {
// html.setAttribute("data-menu-style" , "light") // for light menu style
// html.setAttribute("data-menu-style" , "dark") // for dark menu style
// html.setAttribute("data-menu-style" , "color") // for color menu style
// html.setAttribute("data-menu-style" , "gradient") // for gradient menu style
}
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file
and remove
comments for any data-header-style
to
enable Headers Styles.
//Header Styles
if (!localStorage.getItem("flairaHeader")) {
// html.setAttribute("data-header-style" , "light") // for light header style
// html.setAttribute("data-header-style" , "dark") // for dark header style
// html.setAttribute("data-header-style" , "color") // for color header style
// html.setAttribute("data-header-style" , "gradient") // for gradient header style
}
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and
remove
comments for html.setAttribute("data-width" , "boxed")
to
enable layout-boxed style
//Boxed styles
if (!localStorage.getItem("flairaboxed")) {
// html.setAttribute("data-width" , "boxed") // for boxed style
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
html.setAttribute("data-position" , "scrollable")
to enable
scrollable-layout style
//Scrollabel styles
if (!localStorage.getItem("flairascrollable")) {
// html.setAttribute("data-position" , "scrollable") // for scrollable style
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
html.setAttribute("data-skins" , "no-shadow")
to enable
No-shadow styles
//No-Shadow styles
if (!localStorage.getItem("flairanoshadow")) {
// html.setAttribute("data-skins" , "no-shadow") // for No-shadow styles
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
html.setAttribute("data-vertical-style" , "default")
and also html.setAttribute("data-layout" , "vertical")
to enable Default Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Default Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "default") // for Vertical default style
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable Closed Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Closed Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "closed") // for Vertical closed style
// $('body').addClass('sidenav-toggled');
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable IconText Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//IconText Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "icontext") // for Vertical icontext style
// textLayoutFn();
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable Overlay Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Overlay Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "overlay") // for Vertical overlay style
// $('body').addClass('sidenav-toggled');
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable Overlay Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Hover Submenu Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "hover") // for Vertical hover style
// hoverLayoutFn();
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable Overlay Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Hover Submenu1 Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "hover1") // for Vertical hover style
// hoverLayoutFn();
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable Overlay Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Double Menu Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "doublemenu") // for Vertical doublemenu style
// doubleLayoutFn();
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
flairaverticalstyles
and also html.setAttribute("data-layout" , "vertical")
to enable Overlay Layout style
//Vertical Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//Double Menu Layout Styles
if (!localStorage.getItem("flairaverticalstyles")) {
// html.setAttribute("data-vertical-style" , "doublemenu-tabs") // for Vertical doublemenu style
// doubleLayoutFn();
}
open custom-switcher.js
path:(Flaira/assets/js/custom-switcher.js)
file and remove comments for
html.setAttribute("data-layout" , "horizontal")
and any data-hor-style
to enable
Horizontal layout style
//Menu Layout
if (!localStorage.getItem("flairalayout")) {
// html.setAttribute("data-layout" , "vertical") // for Vertical layout
// html.setAttribute("data-layout" , "horizontal") // for horizontal layout
}
//horizontalmenu Layout Styles
if (!localStorage.getItem("flairalayout") === "horizontal" || localStorage.getItem("flairalayout") == null) {
// html.setAttribute("data-hor-style" , "hor-click") // for horizontal click style
// html.setAttribute("data-hor-style" , "hor-hover") // for horizontal hover style
}
Note:-when horizontal layout is in active all the data-vertical-style will not be in active
To change complete theme colors you have to open _variables.scss file
Rootpath : _variables.scss (assets/scss/_variables.scss )
To customize the theme colors. change colors in root element :
:root {
/* Primary */
--primary-rgb: 135, 96, 251;
----------------
----------------
----------------
}
Note : After Changing color you must run gulp command's . Refer gulp page for more gulp commands click here.
Open custom-switcher.js file
assets/js/custom-switcher.js
To clear LocalStorage loading functions you need to remove localStorageBackup() {} and localStorageBackup() calling function in custom-switcher.js as shown below
function localStorageBackup() {
// if there is a value stored, update color picker and background color
// Used to retrive the data from local storage
if (localStorage.flairadarktheme) {
let html = document.querySelector('html');
html.setAttribute('data-theme-color', 'dark');
}
if (localStorage.flairartl) {
let html = document.querySelector('html');
html.setAttribute('dir', 'rtl');
}
if (localStorage.flairalayout) {
let html = document.querySelector('html');
let layoutValue = localStorage.getItem('flairalayout');
html.setAttribute('data-layout', 'horizontal');
switch (layoutValue) {
case 'horizontal':
html.setAttribute('data-hor-style', 'hor-click');
break;
case 'horizontalhover':
html.setAttribute('data-hor-style', 'hor-hover');
break;
}
}
if (localStorage.flairaverticalstyles) {
let html = document.querySelector('html');
let verticalStyles = localStorage.getItem('flairaverticalstyles');
if (!(document.body.classList.contains('login-img'))) {
switch (verticalStyles) {
case 'closed':
hoverLayoutFn();
html.setAttribute('data-vertical-style', 'closed');
break;
case 'icontext':
textLayoutFn();
html.setAttribute('data-vertical-style', 'icontext');
break;
case 'overlay':
hoverLayoutFn();
html.setAttribute('data-vertical-style', 'overlay');
break;
case 'hover':
hoverLayoutFn();
html.setAttribute('data-vertical-style', 'hover');
break;
case 'hover1':
html.setAttribute('data-vertical-style', 'hover1');
hoverLayoutFn();
break;
case 'doublemenu':
html.setAttribute('data-vertical-style', 'doublemenu');
doubleLayoutFn();
break;
case 'doublemenu-tabs':
html.setAttribute('data-vertical-style', 'doublemenu-tabs');
doubleLayoutFn();
break;
}
}
}
if (localStorage.flairanoshadow) {
let html = document.querySelector('html');
html.setAttribute('data-skins', 'no-shadow');
}
if (localStorage.flairaboxed) {
let html = document.querySelector('html');
html.setAttribute('data-width', 'boxed');
}
if (localStorage.flairascrollable) {
let html = document.querySelector('html');
html.setAttribute('data-position', 'scrollable');
}
if (localStorage.flairacenterlogo) {
let html = document.querySelector('html');
html.setAttribute('data-logo', 'centerlogo');
}
if (localStorage.flairaMenu) {
let html = document.querySelector('html');
let menuValue = localStorage.getItem('flairaMenu');
switch (menuValue) {
case 'light':
html.setAttribute('data-menu-style', 'light');
break;
case 'dark':
html.setAttribute('data-menu-style', 'dark');
break;
case 'color':
html.setAttribute('data-menu-style', 'color');
break;
case 'gradient':
html.setAttribute('data-menu-style', 'gradient');
break;
default:
break;
}
}
if (localStorage.flairaHeader) {
let html = document.querySelector('html');
let headerValue = localStorage.getItem('flairaHeader');
switch (headerValue) {
case 'light':
html.setAttribute('data-header-style', 'light');
break;
case 'dark':
html.setAttribute('data-header-style', 'dark');
break;
case 'color':
html.setAttribute('data-header-style', 'color');
break;
case 'gradient':
html.setAttribute('data-header-style', 'gradient');
break;
default:
break;
}
}
if (localStorage.flairaprimaryColor) {
if (document.getElementById('colorID')) {
document.getElementById('colorID').value = localStorage.flairaprimaryColor;
}
document.querySelector('html').style.setProperty('--primary-rgb', localStorage.flairaprimaryColor);
}
if (localStorage.flairatransparentBgColor) {
document.querySelector('html').style.setProperty('--primary-bg-rgb', localStorage.flairatransparentBgColor);
document.querySelector('html').style.setProperty('--white', localStorage.flairatransparentBgColor);
document.querySelector('html').style.setProperty('--menu-bg', localStorage.flairatransparentBgColor);
document.querySelector('html').style.setProperty('--header-bg', localStorage.flairatransparentBgColor);
document.querySelector('html').style.setProperty('--white', localStorage.flairatransparentBgColor);
let html = document.querySelector('html');
html.setAttribute('data-theme-color', 'dark');
$('#switchbtn-dark').prop('checked', true);
$('#switchbtn-darkmenu').prop('checked', true);
$('#switchbtn-darkheader').prop('checked', true);
localStorage.removeItem("flairaHeader", 'dark');
localStorage.removeItem("flairaMenu", 'dark');
localStorage.removeItem("flairaHeader", 'light');
localStorage.removeItem("flairaMenu", 'light');
}
}
To remove complete LocalStorage saving you need to remove all
localstorage related calling functions in custom-switcher.js
assets/js/custom-switcher.js
files.
LocalStorage related functions like localStorage.setItem, localStorage.removeItem, localStorage.getItem, localStorage.clear. Below are the some examples to find out.
localStorage.setItem("----", true);
localStorage.removeItem("----");
localStorage.getItem("----");