如何为Accesress视差主题创建父主题?

时间:2017-06-10 作者:Mariola Oliwa

所以,我目前使用的是AccessPress视差主题,我创建了一个子主题,但是,它显示了一个错误。它显示“缺少父主题。请安装“accesspressparallax”父主题。我该怎么办?主题有什么问题吗?

风格。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.*/

1 个回复
SO网友:Rick Hellewell

仔细看看这个https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/ .

请注意,子主题的CSS文件有两个必需的参数。从以上链接:

上面代码中的两个必要项是以“主题名称”和“模板”开头的行主题名称告诉WordPress主题的名称,并显示在主题选择器中。模板告诉WordPress应该将哪个主题作为父主题。“”

我还注意到您的“主题uri”值中有一个额外的空间。

的标头style.css 文件应该类似于上面链接中的示例。

结束

相关推荐

Child-theme breaks site

所以,我有一个子主题,里面除了所需的CSS文件之外什么都没有。一旦我激活了这个儿童主题,我的整个网站就关闭了。最后我有两个问题:激活一个只有CSS的子主题怎么能破坏我的网站</我怎样才能回到我原来的主题</这些是网站给我的错误:Warning: require_once(/wp-content/themes/interio_child/admin/options-framework.php) [function.require-once]: 无法打开流:中没有此类文件或目录/wp-c