• Resolved phonyroyal

    (@phonyroyal)


    When creating a child theme of Enigma-Parallax using Child Theme Configurator version 2.2.4.1 the following warning message is displayed:

    * This theme loads the parent theme’s style.css file outside the wp_styles queue.
    * This is common with older themes but requires the use of @import, which is no longer recommended. You can try to resolve this using the “Repair header template” option (see step 6, “Additional handling options”, below).

    Before the Enigma-Parallax v1.4 update, the child theme would be created if the suggested option is selected, when the “Create New Child Theme” button was clicked.

    But after installing the v1.4 update a child theme cannot be created using the suggested option – the screen just goes blank/white.

    Please consider making the necessary changes to rectify the warning about the parent theme’s style.css being loaded outside the wp_styles queue. I hope this solves the issue of the warning about use of the @import method which is not recommended and the white screen.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter phonyroyal

    (@phonyroyal)

    The author of the Child Theme Configurator plugin has replied at https://www.ads-software.com/support/topic/white-screen-when-creating-child-theme/#post-9171318 that Enigma-Parallax uses “outdated stylesheet handling (it is not using wp_enqueue_style for the primary stylesheet)”.

    I hope that the theme issues reported above can be rectified quickly so that I can continue using the Enigma-Parallax theme.

    Thanks

    Hello,

    Please go to enigma-parallax theme directory and open header.php file and remove the below code in line no. 15 and save the file.

    <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />

    Now go to core folder -> scripts folder -> open css-js.php file and add the below code after line no. 3 and save the file.

    wp_enqueue_style('style', get_template_directory_uri() .'style.css');

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme requires use of older @import’ is closed to new replies.