有人能帮我加载“霍夫曼”的儿童主题吗?我已经看到了很多关于其他主题的类似主题的问题,这似乎是很多像我这样的WP新手都在努力解决的共同问题。
我可以完美地加载父主题,没有任何问题。但我在为两件事而挣扎。
style.css顶部应该有哪些细节?目前,我有:/*---------------------------------------------------------------------------------
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");我尝试了几个不同的版本,我没有修改文本域。
从上传的文件中安装主题:hoffman.…解压缩包…安装主题…此主题需要父主题。检查它是否已安装…准备安装Hoffman 1.17…从https://downloads.wordpress.org/theme/hoffman.1.17.zip…下载安装包解压缩包…安装主题…目标文件夹已经存在。/var/www/vhosts/smokeandglass.co.uk/httpdocs/wordpress/wp-content/themes/hoffman/主题安装失败。成功安装了主题。
完全迷茫了!非常感谢您的提前帮助。
发布于 2016-12-14 00:17:08
正如jdm2112所建议的,WP法典有一个非常详细的解释。根据你的问题,有几点看法:
yourparenttheme-child,其中您的父主题是父主题的目录名。/wp-content/themes/这是子主题(WP文档)的标准标题:
/*
Theme Name: Twenty Fifteen Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fifteen-child
*/https://wordpress.stackexchange.com/questions/249147
复制相似问题