Child Theme css and JS

Posted in: Newspaper
Post count: 2

Hello
I tried to add child theme for Newspaper but it doesn’t properly load the parents css and js
Even tried with this plugin Child Theme Wizard, but still the same
Instead of the side bar i get 2 blue headers with
Slider HTML
Jquery-Slider script

The example child theme does the same

functions.php

<?php /*

This file is part of a child theme called Newspapper Child.
Functions in this file will be loaded before the parent theme’s functions.
For more information, please read https://codex.wordpress.org/Child_Themes.

*/

// this code loads the parent’s stylesheet (leave it in place unless you know what you’re doing)

function theme_enqueue_styles() {
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));
}
add_action(‘wp_enqueue_scripts’, ‘theme_enqueue_styles’);

/* Add your own functions below this line.
======================================== */

and style.css

/*
Theme Name: Newspapper Child
Theme URI:
Description: A child theme of Newspapper 6
Author: admin
Author URI: http://vrn-dev.local
Template: Newspaper
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

/* == Add your own styles below this line ==
——————————————–*/

Post count: 22421

Hi,
We do not recommend the use of plugins for the child theme. Every version of the theme comes with a child theme that you can copy over to your server http://screencast.com/t/GK7BlE7a2yr. Please follow this guide to properly set it up: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.