Support » Themes and Templates » [Theme: Focus] Child theme not importing parent styles.

  • As far as I can tell the problem is that the @import url is searching for the styles.css in /focus-child/focus (which doesn’t exist). Instead it should be searching in just /focus.

    The php in the header in the child theme is

    <style type="text/css" media="screen">
    @import url(<?php echo get_stylesheet_directory_uri(); ?>/style.css);
    <?php if(get_option('custom_css')) { echo get_option('custom_css'); } ?>

    And this results in

    <style type="text/css" media="screen">
    @import url(;

    in the source which seems fine to me.

    However the next line in my chrome inspect element tool is
    GET 404 (Not Found)

    My style.css in my child theme is

    Theme Name: Focus-Child
    Theme URI:
    Description: Premium Portfolio/Photography WordPress Theme
    Author: Caden Grant
    Author URI:
    Template: focus
    License: GNU General Public License version 3.0
    License URI:
    Version: 1.0
    Tags: dark, theme-options, custom-menu, white, black, one-column, two-columns, three-columns, four-columns, custom-colors, custom-background, photoblogging, threaded-comments, theme-options, light, red, silver, tan
    @import url("../focus/style.css");

    What have I done wrong?

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Theme: Focus] Child theme not importing parent styles.’ is closed to new replies.