Created site.css, amember not seeing it.

Discussion in 'Templates customization' started by ntc69, Oct 13, 2010.

  1. ntc69

    ntc69 Member

    Joined:
    Apr 9, 2005
    Messages:
    53
    I created a site.css file and created a few lines, even including !important to make sure they were over-riding the amember.css stylesheet. No luck.

    The only way I could get the css changes to work was to add this to the header.html template:

    PHP:
    <LINK REL="stylesheet" TYPE="text/css" 
    HREF="http://www.mysite.com/amember/templates/css/site.css">
    At that point, everything worked fine. I presume that shouldn't have been necessary? I cleared my cache so that wasn't the issue. Any ideas?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    What aMember version you have?
    That line should be included by default in header.html
    Do you have modifications in header template?
  3. ntc69

    ntc69 Member

    Joined:
    Apr 9, 2005
    Messages:
    53
    yes, I think that must have been it then. I am using 3.1.6 but think the bigger issue is the fact I'm using a customised header template and must have forgotten that line.

    One other thing - it seems like I have to use !important on many of the CSS statements in my site.css to override the default amember.css stuff. The header template includes embedded CSS which usually takes a higher precedence over linked stylesheets (with inline CSS being highest priority of all). Is there any way of avoiding that?

Share This Page