Viewing 15 replies - 1 through 15 (of 18 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Use Codex’s Child Theme guidelines for reference to how to correctly create a Child Theme style.css file
    http://codex.wordpress.org/Child_Themes#Example_of_a_basic_Child_Theme

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    So I have created a child theme called twentytwelveschild

    That’s good. πŸ˜‰

    The link http://www.betterpurpose.com/wp-content/themes/twentytwelvechild/style.css?ver=3.5 only has this line in it:

    @import url('../twentytwelve/style.css');

    This looks not quiet right. This is what I have in mine and that works without any problems.

    /*
    Theme Name: Twenty Twelve Child Theme
    Author: Self-Help WordPress User
    Template: twentytwelve
    */
    
    @import url("../twentytwelve/style.css");

    Or am I missing something? Your site looks looks like Twenty Twelve to me.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Nevermind this post, I misread Jan’s comment.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I misread Jan’s comment.

    That happens to me aaallll the ttiiimmeee… πŸ˜‰

    Thread Starter dvir0776

    (@dvir0776)

    First of all, thanks for your answers!

    but I’m still stuck lol, I tried to read the Codex’s Child Theme guidelines but still they don’t add anything there about how to change the version so the prbolem remains, any further help please?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It’s not you, it’s me: I don’t understand what you’re trying to do. πŸ˜‰

    The ver=3.5 in href="http://www.betterpurpose.com/wp-content/themes/twentytwelvechild/style.css?ver=3.5" is from the WordPress version. That’s the normal behavior for any theme you use.

    Do you want to add a custom query string to the CSS URL? There’s an article for that that escapes my Search Engine fu at the moment.

    Thread Starter dvir0776

    (@dvir0776)

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Perhaps it’s your browser cache? Each of those links opened up the same one line file for me…

    I even tried by using the command line curl command. Identical results for each link (curl does not have a cache).

    Thread Starter dvir0776

    (@dvir0776)

    that is REALLY weird.

    So my website loads the css file when you visit it
    or it doesnt?

    I emptied my cache, still only 2 links from the ones above worked
    the one that didnt is this one

    http://www.betterpurpose.com/wp-content/themes/twentytwelvechild/style.css?ver=3.5

    when I open it I see an empty file, no one line for me πŸ™

    Unless I’m missing something, your site looks like it’s working fine. Have you put any styles in the child theme stylesheet? If not, it should be empty.

    EDIT — not totally empty — but it should only contain the commented stuff and the @import line.

    Thread Starter dvir0776

    (@dvir0776)

    thats it, I did put a style in my child theme
    my question is if you see it when the site loads
    up or is it with no css at all?

    Thanks!

    No, you are right, I don’t see any styles. But do you have all of this in the style.css file in the child theme?

    /*
    Theme Name: Twenty Twelve Child Theme
    Author: Self-Help WordPress User
    Template: twentytwelve
    */
    
    @import url("../twentytwelve/style.css");

    Thread Starter dvir0776

    (@dvir0776)

    yesyesyse i do! thats the problem

    you see, the linking is correct inside the css file my
    problem is that when the site tries to load the css file
    it tries to access it via
    ../themes/twentytwelvechild/style.css?ver=3.5

    which DOESNOT work sadly. instead i want it to try load it like this
    ../themes/twentytwelvechild/style.css

    simply without the ?ver=3.5 part at the end.
    any ideas?

    I’m really frustrated about it

    Try downloading a twentytwelve child theme from here:

    http://quirm.net/themes/twenty-twelve-child/

    Thread Starter dvir0776

    (@dvir0776)

    OMGOMGOMG
    IT WORKED!!!! IT’S ALIVE *creepy maniac laugh* ALIVE!

    lol, thank you so much, such a simple solution,
    you sir, just made my day!

    and as a reward, you should have a suprise link!
    (no virus i promise!)

    http://inciswf.com/z0r-de_3714.swf

    Thanks again,
    Dvir

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘cant link to child theme style.css file’ is closed to new replies.