Issue in creating a child theme

Posted in: Newspaper
Post count: 4

I created a folder to use it as child theme with 2 file of function.php and style.css with the code below.
function.php
<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}
?>

style.css
/*
Theme Name: montreal
Theme URI: http://hafteh.ca/mtl/
Description: Newspaper child
Author: John Doe
Author URI: http://hafteh.ca/
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
Text Domain: montreal
*/

But when I activated the child theme and download the demo all blocks are broken and the sidebar is not in its place, It is not possible to put two blocks beside each other and …
The URL is this: http://hafteh.ca/2017/mtl/
Please help me to find out how can I have a child theme.

  • This topic was modified 8 years by Ali Zoghi.
Post count: 20688

Hi,

A child theme is provided in the theme package, please use that one
https://forum.tagdiv.com/the-child-theme-support-tutorial/
Not all files from the theme can be used in the child theme, in the guide the supported files are mentioned.
Install the child theme provided, this should not have any influence on importing a demo or building pages, unless maybe the code used in the child theme is interfering with this process.

Thanks

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