WordPress.org

Ready to get started?Download WordPress

Forums

default.css (11 posts)

  1. rofllikeomg
    Member
    Posted 1 year ago #

    I am creating a child theme and Firebug is telling me that the style is coming from "default.css?ver=3.5.1" I am assuming that the ver=3.5.1 is referring to the version of wordpress I am using. But I cannot find a stylesheet by the name of default.css anywhere. I am under the assumption that style.css was the default. But this default.css?ver=3.5.1 seems to be overiding everything I am trying to do.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to your site?

  3. rofllikeomg
    Member
    Posted 1 year ago #

    I am hesitant to post a link to the site because the last time I posted a link google indexed it and now I am having SEO issues with it.

  4. Andrei Olsen
    Member
    Posted 1 year ago #

    There's likely a @import rule in style.css that imports your default.css, this should show you where the file is located.

  5. Andrei Olsen
    Member
    Posted 1 year ago #

    You can add a robot.txt to avoid this sort of things, see http://www.robotstxt.org/robotstxt.html

  6. rofllikeomg
    Member
    Posted 1 year ago #

    I can't find an @import in the style.css...

    The theme that I am basing it off of is Gridspace by Graph Paper Press and you can see what I am talking about if you hover over the text that says "only your best photos." default.css?ver="3.5.1

    I am trying to get rid of the black bar beneath that title and the dotted lines beneath the menu's on the sidebar.

  7. rofllikeomg
    Member
    Posted 1 year ago #

    Found it in the first few lines of the style.css page:

    "Colors are loaded from one of two styleheets: default.css or dark.css
    * These stylesheets are located in /inc/css/"

    So I guess it turns out that I need ftp access in order to access those files?

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No, you should not be changing anything in those files anyway - that's the point of a child theme. A child theme CSS should override the parent CSS - if you are using specific enough selectors. Once in a while a theme is configured differently so that may have problems - in this case, I'd suggest using Firebug to look at what's going on with the CSS and what you need to override that (if the default is loaded after the child theme you may have problems). Or you may want to ask the Graph Paper Press folks about this.

  9. Andrei Olsen
    Member
    Posted 1 year ago #

    The css file included in HTML and located in css folder, i.e. css/default.css. You can edit the file or you can add the rules to style.css with higher specificity (see http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/). Like this:

    #content h1.page-title, #content h1.entry-title {border: 0;}
    section#secondary .widget {border: 0;}

    Good idea to create a child theme though.

  10. rofllikeomg
    Member
    Posted 1 year ago #

    I do need ftp access to create a child theme though right?

    In the past I think I have created a child theme by simply copying over all of the files into a new directory under /themes. Thanks to I understand it a little better.

  11. Andrei Olsen
    Member
    Posted 1 year ago #

    I think you do. Unless you're going to edit style.css as I mentioned above. But your changes could be lost every time the theme updates.

Topic Closed

This topic has been closed to new replies.

About this Topic