WordPress.org

Ready to get started?Download WordPress

Forums

Child theme activated but stylesheet link not in source (3 posts)

  1. gpspake
    Member
    Posted 1 year ago #

    Setting up a child them is usually easy. This is super weird. I've never seen this happen before.

    I have installed the wp-bootstrap theme and put the following in my child theme's stylesheet

    /*
    Theme Name: Ctoon
    Theme URI: georgespake.com/ctoon
    Description: child theme
    Author: George
    Author URI: your-URI
    Template: wordpress-bootstrap
    Version: 1
    .
    General comments/License Statement if any.
    .
    */
    @import url(../wordpress-bootstrap/library/css/bootstrap.css);
    @import url(../wordpress-bootstrap/style.css);
    
    div.gs_testing h1{
    	background:red !important;
    }

    I activated the child theme but no matter how specific my css was, I couldn't override anything. Then I realized that my stylesheet wasn't being called in the source at all.

    See for your self.. It's supposed to be /ctoon/style.css

    georgespake.com/ctoon

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You're missing the quotation marks in the @import lines - see:

    http://codex.wordpress.org/Child_Themes

  3. gpspake
    Member
    Posted 1 year ago #

    Those aren't really necessary and adding them has no effect but I went ahead and added them anyway. The problem I'm having is that my stylesheet is not being loaded in to the page at all.

    For the record, I'm using this in a twenty twelve child theme and it's working fine.

    /*
    Theme Name: GS
    Theme URI: georgespake.com
    Description: child theme
    Author: George
    Author URI: georgespake.com
    Template: twentytwelve
    Version: 1
    .
    General comments/License Statement if any.
    .
    */
    @import url(../twentytwelve/style.css);

Topic Closed

This topic has been closed to new replies.

About this Topic