WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] @import stylesheet (8 posts)

  1. gnruble
    Member
    Posted 1 year ago #

    I feel like this is kind of a noob question but I'm working on customizing the Disqus comment form, and rather than hosting the CSS on Disqus' servers, I want to use my own stylesheet.

    To do that, I need to add the @import line to the Disqus editor - my question - what exactly would I use to import the default WordPress stylesheet?

    I know it's in my public_html directory, but I have no idea how I'd go about linking to it with @import.

    Would it be myurl.com/public_html/wherever/the/stylesheet/is.css?

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Where is your stylesheet? Is it within your theme's folder?

  3. gnruble
    Member
    Posted 1 year ago #

    Yeah -- its exact location is public_html/wp-content/themes/maggie/style.css

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Do you have a link to your website depicting the CSS hosting on Disqus' server?

  5. gnruble
    Member
    Posted 1 year ago #

    A link to the modified Disqus form?

    http://techpounce.com/2012/07/12/disqus/#disqus_thread

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    I'm not sure what you're attempting, are you trying to @import a stylesheet within your own theme directory, or from another server? If from another server and on the link provided, can you state which stylesheet you're trying to grab?

  7. gnruble
    Member
    Posted 1 year ago #

    Well, to use custom CSS with Disqus you either have to use the editor at your admin panel on Disqus.com, or @import your WordPress stylesheet via the editor at Disqus.com -- you can't modify the comment form using the WordPress editor without first importing it on the Disqus admin panel.

    The only reason I need to import it is because I can't import any fonts from Google Web Fonts unless I use the WordPress stylesheet. It cancels out my custom CSS if I try to do it with Disqus' editor.

    All I need to do is import my WordPress stylesheet to the Disqus editor - so yes; I'm trying to @import the stylesheet from within my theme directory.

  8. gnruble
    Member
    Posted 1 year ago #

    Figured it out; it's just yoursite.com/wp-content/uploads/theme-name/style.css

Topic Closed

This topic has been closed to new replies.

About this Topic