WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child Theme not showing once activated (3 posts)

  1. Bluey1989
    Member
    Posted 1 year ago #

    Hi guys,

    Having a little trouble getting my child theme to work. My website is http://flourished.com.au/wordpress/

    As you can see from the source the currently linked style sheet is http://flourished.com.au/wordpress/wp-content/themes/twentyeleven/style.css

    However the code in my header.php for linking the theme style sheet is <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/style.css" />

    In my dashboard I've got my child theme selected dashboard but the output is still the stylesheet for twentyeleven?

    My child theme has the following code in it: child theme code

    Any help you could give would be greatly appreciated!

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    However the code in my header.php for linking the theme style sheet is <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/style.css" />

    is that header.php of the child theme?

    review http://codex.wordpress.org/Function_Reference/bloginfo to see that 'template_url' is pointing to the parent theme;

    use 'stylesheet_url' instead.

  3. Bluey1989
    Member
    Posted 1 year ago #

    Oh excellent! Got it working with 'stylesheet_url', still new to this so I wasn't aware of the different snippets to use there.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.