Support » Themes and Templates » Child Themes not working properly?

  • Hey, I just made my own framework and want to create some child themes.
    My framework’s folder’s name is “framework”
    The child theme’s folder’s name is “Andor”

    And the content in the child theme’s style.css is the following

    Theme Name: Andor
    Description: Test theme
    Template: framework
    @import url("../framework/style.css");

    But no matter what I try to add into the style.css it isn’t showing up. Only If I copy the index.php and change something there. But styles don’t.

    Any idea?

    Regards, Andor Nagy

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


    Is the name of your theme, “framework” ?

    Yes. And when I activate the child theme, and look at the page source in chrome, the theme doesn’t gets the style.css from the child-themes folder.

    Moderator Andrew Nevins


    Can you post a link to your website, with the Child Theme activated?

    Are you uploading the theme via FTP or through the WordPress theme installer? If via FTP, what folder did you place the child theme in? It should be wp-content->themes->Child theme. This places the child theme folder directly next to the parent theme folder.

    Also you may need to include the Author information in the theme css header.

    I have it installed on my PC localhost.

    by wp-content->themes->Child theme. you mean




    The second one, wp-content/themes/your-child-theme. The child theme folder should be next to the parent theme folder.

    It is, and it still isn’t working.

    Just tried to look at your site a couple of times and it is not loading. I just get the browser loading icon, connection message showing but nothing appears. There may be a problem with your server or setup which is causing the issue.

    Theres no problem with it. I just stopped XAMPP

    In the child theme are you keeping the style.css inside another folder? If it looks like this wp-content/themes/my-child-theme/styles-folder/style.css then this will cause your issue.

    No, I’m not.

    Test importing the parent styles directly in the child them markup. If you have a header file place it there, if not place it in the body of the HTML, forget about invalid markup this is just for testing.

    The first one will display the url of the parent theme, the second the child theme. This will let us know what WordPress thinks is going on. Look at results in Chrome or firebug.

    @import url(“<?php bloginfo(‘template_url’); ?>/style.css”);
    @import url(“<?php bloginfo(‘stylesheet_url’); ?>”);

    It works now, I imported the style.css in the header using
    @import url(“<?php bloginfo(‘stylesheet_url’); ?>”);

    Great. Did the paths WordPress display match what you expected?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Child Themes not working properly?’ is closed to new replies.