Support » Themes and Templates » Link external style sheet using Custom CSS window?

  • Resolved Skytouch

    (@skytouch)


    First, I must concur with others here that Suffusion is an excellent theme – thanks sayontan!

    Here’s my (probably dumb) question: Rather than enter all my custom CSS directly in the administration panel, can I add just a one-line reference to my own external stylesheet, e.g. mycustom.css? I’m not sure what the syntax should be because I don’t understand how this form field is referenced within the theme.

    Thanks,
    Sky

Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s quite easy actually.
    1. Create your mycustom.css file outside the suffusion folder in wp-content/themes.
    2. In the same options page as Custom CSS, you will see options called “First Additional Stylesheet link” etc. Put in your stylesheet’s full URL over there. E.g. http://my-domain.com/styles/mycustom.css. Ensure that you can actually access the CSS file by entering it in your browser’s address bar.
    3. Save. This should work.

    Skytouch

    (@skytouch)

    You’re awesome sayotan, thanks for the quick reply This reminds me – I tend to use relative URLs, e.g. “../styles/myfile.css” versus the entire http string. Is there any clear need or advantage for using the entire string? Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link external style sheet using Custom CSS window?’ is closed to new replies.