Custom CSS not working online
- This topic has 13 replies, 2 voices, and was last updated 3 months, 1 week ago by .
- February 11, 2020 at 9:11 am #1688danielarogoza
Hi! I’m using the Mercury theme. I customized style using the Tools > Custom CSS editor
I’ve syncked my website in my hosting, everything uploaded everything but it doesn’t reflect the css customization.
When I preview the website locally, everything is great, but when is online, not custom css is working.February 11, 2020 at 9:12 am #1691BobSupport
cache?February 11, 2020 at 9:32 am #1692danielarogoza
Nope, already tried that.
Actually, I uploaded the site with the custom css already working locally (still works –locallly–), but online, it doesn’t.
Tried it in different browsers. Is just like the custome css doesn’t exist at all.
I must say I am not at all savvy in this matter, is my first time using Publii (loved it!) and english is not my native language.
Thanks for your help, in advance!February 11, 2020 at 9:32 am #1693BobSupport
any URL?February 11, 2020 at 9:33 am #1694danielarogoza
Sorry, yes!February 11, 2020 at 9:34 am #1695BobSupport
and the screenshot of the Custom CSS area.February 11, 2020 at 9:40 am #1696danielarogoza
Thank you for your patience!February 11, 2020 at 9:52 am #1698BobSupport
The style.css file does not contain your CSS rules (that should be attached at the end of the style.css file), so I suppose this is a server cache problem, especially since it works locally.February 11, 2020 at 9:56 am #1699danielarogoza
Ok, let me see if I understand correctly. This phrase: <span style=”color: #0000ff;”>”The style.css file does not contain your CSS rules (that should be attached at the end of the style.css file)”</span> means that, when I sync my site to my web server, Publii puts my custom rules at the end of the CSS file ¿right?
And, since those rule are not there, that means I should contact my hosting provider, and they are the one that might help me solving the caché problem?February 11, 2020 at 9:59 am #1700BobSupport
when I sync my site to my web server, Publii puts my custom rules at the end of the CSS file
Exactly yes.February 11, 2020 at 10:01 am #1701danielarogoza
The only thing that worries me, and sorry for insisting is that the custom rules where there BEFORE I ever uploaded the site, so there is no previous version of the css style (the “original”).
I¡ve attached the style.css I have in my Documents/Publii/sites… (etc.) local folderFebruary 11, 2020 at 10:05 am #1703danielarogoza
I manually uploaded the style.css file and everything is working now.
Thank you so much for your help.
I’m proceeding to donate.
Cheers!February 11, 2020 at 10:07 am #1704BobSupport
The style.css file is built from the following files: main.css + visual-override.js + custom.css.
So, the custom.css rules should be located at the end of the style.css – if it works for you locally all work as should.February 11, 2020 at 10:21 am #1707BobSupport
Thank you for your donation, I really appreciate it.
- The topic ‘Custom CSS not working online’ is closed to new replies.