• So I tried to make a child theme with no success.
    1/ I copied the style.css file and changed a few things in the comment section :
    Theme Name: Baskerville Child
    Text Domain: baskerville Child

    2/ I copied index.php
    3/ I add a function.php with these lines :
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’);
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’);

    }
    ?>

    But when accessing the site, it does not work : articles not displayed, menu logo/images not visible, etc…

Viewing 1 replies (of 1 total)
  • Thread Starter risine

    (@risine)

    Ok, so I found a “solution”.
    I added the file content.php in the child directory, and it seems to work fine.
    Is it the right thing to do?

Viewing 1 replies (of 1 total)
  • The topic ‘Child Theme not working.’ is closed to new replies.