I'm using a default theme in Prestashop 1.6 and I have a problem. What I'm trying to accomplish is to simply move the navbar 25px higher. I know that I need to remove or change
#block_top_menu {
padding-top: 25px;
}
in blocktopmenu.scss, which is located not in the modules directory, but in theme's directory, which I presume is supposed to override the default style. When I disable it in the browser Inspector tool, it changes exactly the way I want it to, but it obviously doesn't save.
I edited the file changing 25px to 0px. When I reloaded the page, nothing changed and the inspector still shows the code as if I never modified it. So I edited the blocktopmenu.css from the modules category, adding !important, like so:
#block_top_menu {
padding-top: 0px !important;
}
hoping to override the scss. Still no changes happened. In desperation, I deleted the scss file from the server. Still no change and the Inspector shows the file as if it was there.
I'm out of ideas. Should I somehow clear prestashop's cache or something? Please help.
EDIT: I cleared the cache. No changes.
File
default-bootstrap/sass/modules/blocktopmenu/css/blocktopmenu.scsscompiles intodefault-bootstrap/css/modules/blocktopmenu/css/blocktopmenu.cssIf you have found the
.scssfile, there must also exist a corresponding.cssfile.Now most users just modify
.cssfile directly and there is nothing wrong about it, but if you're doing lots of styles changes (like changing color scheme for the entire website) it's probably better to change the.scssfiles and compile them into.css. if you change a theme variable in.scss, it will be changed everywhere it has been used. This way you only need to edit one place instead of X places.To work with
.scssyou need two tools:sassandcompass. You need to google installation instructions for your operating system.Once these tools are installed on your system, you need to run a command in the console in the theme folder (because different theme = different styles):
/var/www/themes/theme1/ > compass buildrunning compass build in the theme folder will compile
.scssfiles into.cssand places them incssfolder (of the theme).