Child theme – no formatting – been trying for hours!
-
Hello
I have just done a new WP installation and created a child theme before I’ve done anything else, such as create pages, posts etc. However, when I activate the child theme the site has no formatting at all and, try as I might, I cannot get it to look as it does with the parent theme.
I have tried deactivating all the plugins, but that doesn’t make any difference.
The style.css file for the parent theme is in it’s own css folder within its theme folder, but I have referenced that in the child theme’s Import URL tag.
Looking at the source code for the parent site, I notice that style.css has ?ver=3.8.1 referenced – see below. Would this stop the child theme being able to pick up the parent style file?
<link rel=’stylesheet’ id=’main_css-css’ href=’https://www.hands-on-hr.com/wp-content/themes/aeron/css/style.css?ver=3.8.1′ type=’text/css’ media=’all’ />
I don’t have the child theme working at the moment, only the parent theme.
This is what my child theme style.css says:-
//*
Theme Name: Aeron Child
Theme URI: https://www.ab-themes.com
Description: Aeron Child Theme
Author: John Doe
Author URI: https://www.ab-themes.com
Template: aeron
Version: 2.1.4
*//* =Imports styles from the parent theme
————————————————————– */
@import url(‘../aeron/css/style.css’);/* =Theme customization starts here
————————————————————– */Any help greatly appreciated.
- The topic ‘Child theme – no formatting – been trying for hours!’ is closed to new replies.