Can anyone assist with helping me load a child theme for 'Hoffman'. I've seen so many questions around this similar subject for other themes and it seems to be a common thing that a lot of WP newbs like myself seem to struggle with.
I can load the parent theme perfectly without any problems. But I'm struggling with two things.
- What detail should be at the top of the
style.css
on the child theme? At the moment, I have:
/*---------------------------------------------------------------------------------
Theme Name: Hoffman Child
Text Domain: hoffman child
Theme URI: http://www.andersnoren.se/teman/hoffman-wordpress-theme/
Version: 1.17
Description: Hoffman is a beautifully minimal, responsive and retina-ready theme for bloggers. It features a social icon menu, Jetpack support for infinite scroll, five custom widgets, two page templates, editor styling, translation-ready code, custom accent color support, custom background support, support for the gallery post format and much more. Included translations: Swedish/svenska. Demo: http://www.andersnoren.se/themes/hoffman/
Tags: blog, one-column, custom-colors, custom-menu, editor-style, featured-images, footer-widgets, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
Author: Anders Norén
Author URI: http://www.andersnoren.se
License: GNU General Public License version 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: hoffman;
All files, unless otherwise stated, are released under the GNU General Public License
version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
-----------------------------------------------------------------------------------*/
@import url("../hoffman/style.css");
I've tried a few different versions of this where I didn't amend the text domain.
- The second issue, is that when the child theme is zipped and I attempt to upload it, it can't seem to find the parent theme, even though the parent theme was loaded successfully and working perfectly in WP. When uploading the hoffman-child.zip, this is the report I receive as it goes through the motions:
Installing Theme from uploaded file: hoffman-child.zip Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
Preparing to install Hoffman 1.17…
Downloading install package from https://downloads.wordpress.org/theme/hoffman.1.17.zip…
Unpacking the package…
Installing the theme…
Destination folder already exists. /var/www/vhosts/smokeandglass.co.uk/httpdocs/wordpress/wp-content/themes/hoffman/
Theme install failed.
Theme installed successfully.
Totally confused! Many thanks for your help in advance.
Template
value. It should behoffman
and nothoffman;
(don't add a trailing;
)