所以,我现在使用的是AccessPress视差主题,我已经创建了一个子主题,但是它显示了一个错误。上面写着“父主题丢失了。请安装”访问主题“父主题”。我该怎么办?这个主题有什么问题吗?
style.css文件:
/*Theme Name: AccessPress Parallax
Theme URI: htt ps://accesspressthemes.com/wordpress-themes/accesspress-parallax/
Author: AccessPress Themes
Author URI: htt ps://accesspressthemes.com/
Description: AccessPress Parallax is a beautiful WordPress theme with Parallax design. Parallax design has become popular and is widely implemented these days. This is probably the most beautiful, feature rich and complete free WordPress parallax theme with features like: fully responsive, advance theme option panel, featured slider, advance post settings, services/team/blog/portfolio/testimonial layout, Google map integration, custom logo/fav icon, call to action, CSS animation, SEO friendly, translation ready, RTL support, custom CSS/JS and more! More over the theme is fully translation ready, WooCommerce Compatible, bbPress Compatible and fully support multilanguage via POLYLANG plugin. Demo: ht tp://accesspressthemes.com/theme-demos/?theme=accesspress-parallax Support forum: https://accesspressthemes.com/support/ Pro version: htt ps://accesspressthemes.com/wordpress-themes/accesspress-parallax-pro/
Version: 1.30
License: GNU General Public License v3 or later
License URI: ht tp://www.gnu.org/licenses/gpl-3.0.html
Text Domain: accesspress-parallax
Domain Path: /languages/
Tags: custom-background, custom-colors, custom-header, custom-menu, featured-images, one-column, right-sidebar, theme-options, threaded-comments, translation-ready, two-columns, grid-layout, footer-widgets, blog, e-commerce, photography, portfolio
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.
AccessPress Parallax is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.*/发布于 2017-06-10 20:56:00
仔细看看这个https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/。
注意,您的子主题的CSS文件有两个必需的参数。从上述链接:
以上代码中的两个必需项是以“主题名称”和“模板”开头的行。主题名称告诉WordPress主题的名称是什么,这将显示在主题选择器中。模板告诉WordPress它应该考虑哪个主题作为父主题。“
我还注意到,您的“主题uri”值有一个额外的空间。
style.css文件的头应该类似于上面链接中的示例。
https://wordpress.stackexchange.com/questions/269722
复制相似问题