Tried to make a child theme – Created a Mess
-
Hi,
I am very new to WordPress.
I am redoing a relative’s website so I am working on a staging environment on a subdomain. √
dev.dentistryon7.com/wp √
I purchased a theme √
I started making some tweaks to the theme √ Then I discovered the concept of child themes.
I tried to create a child theme, following instructions in codex. https://codex.www.ads-software.com/Child_Themes
Created a style.css file and a functions.php file with this code in it:<?php
/* Twenty Fourteen functions and definitions*/
/* Calling parentstyle with several style.css*//*Setting ‘parent-style’ as a dependency will ensure that the child theme stylesheet loads after it.*/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘twentyfourteen-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘your child theme filename-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘twentyfourteen-style’)
);
}When I try to activate (or switch back to my parent theme) I get the error message:
“Fatal error: Class ‘Vc_Grid_Item_Editor’ not found in /home/dentis81/public_html/dev/wp/wp-content/plugins/js_composer/include/autoload/vc-grid-item-editor.php on line 254”
I tried uninstalling and reinstalling the parent theme but the problem persists (and even after uninstallation it seems like some of the dummy content I had previously uploaded is still there).
Any advice on how I can get a clean slate and start working on the website while tweaking the parent theme would be greatly appreciated
- The topic ‘Tried to make a child theme – Created a Mess’ is closed to new replies.