0
Welcome Guest! Login
0 items Join Now

Custom CSS

  • Custom CSS

    Posted 6 years 4 months ago
    • Hi,
      Custom Css in Page Settings doen't work... I edit this file but template does not change...

      Can someone help me?

      Best regards,

      Loredana
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Custom CSS

    Posted 6 years 4 months ago
    • To create a custom CSS compatible with Gantry 5 please read this http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet .

      Remember to recompile CSS from base outline too.


      So don't use page settings for custom CSS.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: Custom CSS

    Posted 6 years 4 months ago
    • I've already tried to create a custom.scss file but it doesn't work...
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Custom CSS

    Posted 6 years 4 months ago
    • Login details do not work on backend and I cannot get on to frontend either as the site is offline and there is no login panel present?

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: Custom CSS

    Posted 6 years 4 months ago
    • Thank you! Now It works right!
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Custom CSS

    Posted 6 years 4 months ago
    • 1. You are trying to put both a file and inline CSS in the custom css/js atom. You can't do this in the same item - you specify EITHER a file that you want to load OR add inline CSS. But either way you should not be putting custom CSS here, the best practice method is to use the custom CSS file (for which I gave you the instructions).
      2. The CSS you added inline is invalid anyway since it is using the wrong attribute names.
      3. You have not created a custom.scss file with the instructions that I gave you.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.076 seconds