• Hi,

    I have the Edge Child Theme but i don’t know how to add the Responsive.css file in it.

    Here is my function.php file :

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘edge_enqueue_styles’ );
    function edge_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }
    ?>

    How can add a new responsive.css file?

    Thanks in advance.

    Geoffrey

Viewing 1 replies (of 1 total)
  • Hi, I just encountered a similar problem. If I understand your problem, you want your edge child to have its own responsive.css, right? If that’s what you’re looking for, then first under your Edge Theme Options in wordpress, turn off responsive. This will prevent the parent responsive.css from autoloading. Then in your child’s functions.php put:

    function edge_enqueue_styles() {
    wp_enqueue_style( 'parent-theme', trailingslashit( get_template_directory_uri() ).'style.css');
    wp_enqueue_style('edge-responsive', get_template_directory_uri().'/css/responsive.css');
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Child Theme problem – Responsive CSS’ is closed to new replies.