Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress Woes

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31243
    virtual
    Participant

    I’m doing Chris’s Creating and Editing Custom Themes from Lynda.com and using the exercise files and am having a lot of trouble with the links and paths to files and images. For example, Chris puts the product.css file in the theme and links to it from the header using



    If I put it in the same place and use the same link, it doesn’t link.
    I have tried putting it in the root of the theme like style.css and linking with either /product.css or product.css , still no joy
    The only way I can get it to show is to paste the css into the style.css

    The .htaccess file is as follows:

    Code:
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /widgetcorpWP/
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /widgetcorpWP/index.php [L]

    # END WordPress

    Am I right in thinking that this has something to do with it? Any ideas, this is driving me nuts.

    #65850
    Rob MacKay
    Participant

    Hey :)

    do you have a space in the real code?

    Coz that would probably be outputting:

    http://yoursite.com/wp-content/themes/yourtheme /css/product.css

    which would break, as you can see :)

    #65808
    Rob MacKay
    Participant

    Ahh the good old typo :D

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.