I only see theme.css in my asset folder. And adding the included code doesn't make my header transparent. Is there an update to the theme?
pw: cohbos
Please check this. It will solve the problem for Debut theme. Not the best way but no problem in this solution. Thanks
//Adding ID to header and header-grid
To header => id="site-header"
To header => id="site-header-grid"
// Navbar transparent css
#site-header {
position: fixed;
padding: 0px 20px 0px 20px;
z-index: 1;
background: #00ffff00;
}
#site-header-grid {
background: #faebd700 !important;
}
Javscript:
// Navbar transparent and fixed header
var nav = document.getElementById('site-header');
var nav_grid = document.getElementById("site-header-grid");
window.onscroll = function(){
if (window.pageYOffset > 100 ){
nav.style.background = "#fff";
nav_grid.style.background = "#fff";
}
else{
nav.style.background = "#00ffff00";
nav_grid.style.background = "#00ffff00";
}
}
User | Count |
---|---|
454 | |
192 | |
139 | |
61 | |
42 |