We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49693
    • 8 Posts
    Hi

    Is there a reason why changes to a css style sheet do not work?

    The css file is stored in assets/css/style.css (as normal)

    When changes are made however, they do not work.

    The following is an extract from the <head> section of my template:

    <!DOCTYPE html>
    <html lang="en" style="">
    <head>
    <meta charset="[[++modx_charset]]">
    <title>[[++site_name]]</title>
    <link href="assets/css/style.css" media="screen" rel="stylesheet" type="text/css">
    <base href="[[++site_url]]">
    </head>

      • 13226
      • 953 Posts
      From a tech point your base href should be before any file or link path, but I am not sure that is your problem.

      If you are changing the file outside of the manager, you will probably have to clear your browser cache and possibly manager cache after every change.

      Just for info, better code:

      <!DOCTYPE html>
      <html lang="en" style="">
      <head>
      <meta charset="[[++modx_charset]]">
      <title>[[++site_name]]</title>
      <base href="[[++site_url]]">
      <link href="assets/css/style.css" media="screen" rel="stylesheet" type="text/css">
      </head>
      [ed. note: iusemodx last edited this post 8 years, 2 months ago.]