• Resolved billjenkins

    (@billjenkins-1)


    I’m unable to create a functioning child theme using standard techniques. Are there special steps needed?
    Here’s my child theme files:
    style.css
    =====
    /*

    Theme Name: weDocs Child
    Theme URI: http://wedevs.com/theme/wedocs/
    Author: Tareq hasan
    Author URI: http://tareq.wedevs.com/
    Template: wedocs-develop

    */

    =====

    functions.php:
    =====
    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tareq Hasan

    (@tareq1988)

    This is a plugin, so I am not sure why would you try to create a child theme from a plugin?

    Hi Tareq,

    The theme weDocs works with this plugin. However, I tried creating a child theme off of wedocs and had the difficulties described above.

    The child theme allows me to use the customizer specific to the child theme, but not to change the CSS and templates.

    Anyway to use a child theme so I can upgrade the theme without overwriting my customizations?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme?’ is closed to new replies.