Trouble creating child theme
-
Hi,
I am fairly new to using wordpress and child themes. I tried to set one up and it seems to have most, but not all of the styles. For example, the main title is not the correct style (i.e. how it appears in the parent theme).
The website is at https://www.afrontapsicologos.com
In the child directory I have the following code in my functions.php:
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) ); } ?>
And this in styles.css:
/* Theme Name: Generator Child Theme URI: https://fasterthemes.com/wordpress-themes/generator Author: FasterThemes Author URI: https://fasterthemes.com/ Description: Generator is a lightweight, faster, clean, super flexible and bootstrap based responsive theme for business or personal websites. Generator Theme is built on top of Twitter Bootstrap which means that your site can be displayed on every device (pc, laptop, mobile devices, tablets etc) without horizontal scrolling.It has got custom widgets, theme-options etc in order to get it customized as per your need. Home page layout contains in-built slider and recent posts are touch friendly slider based on owl carousel. Template: generator Version: 2.2 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Tags: orange, left-sidebar, right-sidebar, full-width-template, one-column, two-columns, responsive-layout, theme-options, fluid-layout, custom-background, custom-colors, custom-header, custom-menu, post-formats , translation-ready Text Domain: generator This theme, like WordPress, is licensed under the FasterThemes. Use it to make something cool, have fun, and share what you've learned with others. */ @import url(“../generator/style.css"); @import url(“../generator/css/bootstrap.css"); @import url(“../generator/css/editor-style.css"); @import url(“../generator/css/font-awesome.css"); @import url(“../generator/css/owl.carousel.css");
What am I missing? And is all of that needed in styles.css ? I feel like I am trying to use two methods at the same time and neither is working.
Thanks in advance.
-Shawn
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trouble creating child theme’ is closed to new replies.