Sign in

Custom CSS not working online

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1688
    danielarogoza

    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.

    Attachments:
    #1691
    BobBob
    Support

    cache?

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #1692
    danielarogoza

    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!

    #1693
    BobBob
    Support

    any URL?

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #1694
    danielarogoza
    #1695
    BobBob
    Support

    and the screenshot of the Custom CSS area.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #1696
    danielarogoza

    Thank you for your patience!

    Attachments:
    #1698
    BobBob
    Support

    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.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #1699
    danielarogoza

    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?

     

    #1700
    BobBob
    Support

    when I sync my site to my web server, Publii puts my custom rules at the end of the CSS file

    Exactly yes.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #1701
    danielarogoza

    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 folder

    Attachments:
    #1703
    danielarogoza

    OK, Bob!

    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!

    #1704
    BobBob
    Support

    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.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #1707
    BobBob
    Support

    Thank you for your donation, I really appreciate it.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Custom CSS not working online’ is closed to new replies.