Setting up a child theme

Posted in: Newspaper
Post count: 1

Hi,

We’ve set up a child theme, but the layout of the pages breaks. When reverting back to the parent theme, everything is back to normal.

The child theme’s functions enqueueing:
function my_theme_enqueue_styles() {

$parent_style = 'parent-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 )
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

Style.css
*
Theme Name: Newspaper Child theme
Description: Fana Sparebank intranett tema
Author: Fana Sparebank
Author URI: Author
Template: Newspaper
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
*/

Is there something missing in our child theme setup? The folder name of the child theme is “Nespaper-child” with no spaces.

Best regards

Post count: 22421

Hello,
Please use the child theme that comes bundled with the theme in the main archive: http://screencast.com/t/QSdtJA6dsUzV and then use this guide to populate it: 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.