Hi,
Thanks so much for your reply!
I removed the enqueuing of the parent theme’s stylesheet (I think!) – this is what’s in the function.php file now:
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
function enqueue_child_theme_styles() {
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') );
}
but I’ve really messed something else up and I don’t know what.
I have an empty style.css file (apart from the header info) now in the child theme, as I want to see what the parent style is doing, and only modify the bits that I need to. The child theme’s style.css has the following:
/*
Theme Name: Twenty Fifteen HRA
Theme URI: https://wordpress.org/themes/twentyfifteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 1.3
Template: twentyfifteen
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: twentyfifteen_HRA
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
but the display is terrible! I’ve made a really bad mess of something…
When I look in the source code of the site, there is a whole lot of inline css – is that meant to be there?
I’m sure sorting this out is quite straight-forward if you know what to look for, but unfortunately I don’t. (I tried copying the entire parent stylesheet and pasting it into the child stylesheet and everything displayed properly, but this is obviously not what I should be doing, so I want to find out where I’ve gone wrong and do it right.)
Many thanks for any help with this,
WP.