首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为普通视差主题创建父主题?

如何为普通视差主题创建父主题?
EN

WordPress Development用户
提问于 2017-06-10 15:24:59
回答 1查看 362关注 0票数 1

所以,我现在使用的是AccessPress视差主题,我已经创建了一个子主题,但是它显示了一个错误。上面写着“父主题丢失了。请安装”访问主题“父主题”。我该怎么办?这个主题有什么问题吗?

style.css文件:

代码语言:javascript
复制
/*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.*/
EN

回答 1

WordPress Development用户

发布于 2017-06-10 20:56:00

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

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

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

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

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

票数 0
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/269722

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档