[resolved] Link external style sheet using Custom CSS window? (3 posts)

  1. Skytouch
    Posted 6 years ago #

    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.


  2. Sayontan Sinha
    Posted 6 years ago #

    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.

  3. Skytouch
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic