Crashed page – child theme
-
Hi,
I wanted to create a child theme to the theme VMagazine Lite. When I have activated the child theme, my page has crashed. I also could not access to the wp-admin of the page.I received the following error message on the page:
?The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”I received the following error message via mail:
?An error of type E_COMPILE_ERROR was caused in line 60 of the file /home/meselang/public_html/wp-content/themes/vmagazine-lite/inc/init.php. Error message: require(): Failed opening required ‘/home/meselang/public_html/wp-content/themes/vmagazine-lite-child/inc/welcome/welcome-config.php’ (include_path=’.:/opt/alt/php71/usr/share/pear’)”Note: I have created the child theme as instructed by www.remarpro.com.
My style.css:
/*
Theme Name: Vmagazine-lite Child
Description: Vmagazine-lite Child Theme
Author: Tunde
Author URI: https://meselang.hu
Template: vmagazine-lite
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: vmagazine-lite-child
*/My functions.php:
<?php
function my_theme_enqueue_styles() {
$parent_style = ‘parent-style’; // This is ‘di-magazine’ for the Di-Magazine theme.
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 ),
wp_get_theme()->get(‘Version’));
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
?>I’ve already logged in via “recovery mode” and I`ve made a backup so my page is working now. But I still want to create a child theme.
Can you help me what the problem is?The page I need help with: [log in to see the link]
- The topic ‘Crashed page – child theme’ is closed to new replies.