Forums

[resolved] No CSS When New Site Created? (5 posts)

  1. colt082295
    Member
    Posted 11 months ago #

    Every time I create a new site it appears to have no css styling. It only has text. Everything is fine if I create a new page however. Here is one of the links with the problem: http://coltinator.com/testing/

  2. Seacoast Web Design
    Member
    Posted 11 months ago #

    Your site does call a stylesheet (see your source code):

    <link rel="stylesheet" type="text/css" media="all" href="http://coltinator.com/testing/wp-content/themes/twentyeleven/style.css" />

    So the file is either not present or in err.

  3. colt082295
    Member
    Posted 11 months ago #

    Ok, thanks.

  4. colt082295
    Member
    Posted 11 months ago #

    I'm not supposed to look for a "testing" folder on my ftp server am I? If I am, then it's not there. But I looked in "wp-content/themes/twentyeleven" and the "style.css" file is there.

  5. colt082295
    Member
    Posted 11 months ago #

    I figured it out. I had the wrong code in my .htaccess file. It now looks like this:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    # RewriteCond %{REQUEST_URI} ^.* /wp-admin$
    # RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

Reply

You must log in to post.

About this Topic