• I am trying to create a Child theme for my locally website prototype

    style.css
    /*
    Theme Name: OceanWP Child
    Template: oceanwp
    */
    h2 {color:blue;
    }
    and functions.php

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_styles’ );
    function oceanwp_child_enqueue_styles() {

    $parent_style = ‘oceanwp-style’;

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    ?>

    I would appreciate any hints on what to check.
    thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘child theme’ is closed to new replies.