ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CSS Styles are not applied to website

December 13, 2011 8:20pm

Subscribe [3]
  • #1 / Dec 13, 2011 8:20pm

    jdesign

    2 posts

    Hi,

    I’m a total newbie to EE, have taken over a project from a previous developer and it suddenly appears that none of the styles are applied to the website template anymore > the website content is still there, just not styled.

    Do the styles need to be switched on in the backend or is there another trick to it ?
    Your help is much appreciated 😊

  • #2 / Dec 14, 2011 10:34am

    Rob Allen

    3118 posts

    Can you post your template code that you’re using to reference the stylesheet?

  • #3 / Dec 14, 2011 8:31pm

    jdesign

    2 posts

    HI there, thanks for your help.
    I found the head.php which is included on every page, I suppose this is what you are asking for ?

    <title>
     {if segment_1 != '' AND segment_1 != "search" } {exp:title:weblog weblog_name="{segment_1}"} | {exp:title:site site_id="1"} {/if}
     {if segment_1 == ''} {exp:title:site site_id="1"} {/if}
     {if segment_1 == 'search'} Search Results | {exp:title:site site_id="1"} {/if}
    </title>
    
    <link href="{site_url}/assets/master.css" rel="stylesheet" type="text/css" media="screen, projection" />
    <link href="{site_url}/assets/nivo-slider.css" rel="stylesheet" type="text/css" media="screen" />        
                              
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]
    [removed][removed]

    When I looked via ftp into the assets folder, there was no master .css but a master.php (??) .I can’t explain how this was renamed, but I re-uploaded the master.css and all other included css files. Unfortunately still no change .. Do I need to re-import / re-upload those css files within EE ?

    Thanks!!

  • #4 / Jan 24, 2012 5:07am

    Osze

    42 posts

    Never use a / after the {site_url}.

    The / is automatic so now the link is to http://www.yourdomain.com//assets/master.css

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases