简体   繁体   English

WordPress主题安装错误

[英]WordPress Theme Installation Error

While I am installing wordpress theme, it's showing 当我安装wordpress主题时,它正在显示

" Installation Failed: The package could not be installed - The theme is missing the style.css stylesheet " 安装失败:无法安装软件包-主题缺少style.css样式表

I have installed with various methods, but same issue. 我已经安装了各种方法,但是存在相同的问题。 (Eg: Cpanel, WP-Dashboard). (例如:Cpanel,WP-Dashboard)。

在此处输入图片说明

There are many things when you got error like style.css missing 当您遇到诸如style.css的错误时,会有很多事情发生

One: first of all into your WordPress root directory open wp-content-themes->your theme name->header.php. 一:首先进入WordPress根目录,打开wp-content-themes->您的主题名称-> header.php。 The check the style.css properly call or not? 检查style.css是否正确调用?

Two: If first step is ok then open your style.css and add your theme name into comment sections something like this: 第二:如果第一步没问题,请打开style.css并将主题名称添加到注释部分,如下所示:

/*
Theme Name:     Your Theme Name
Theme URI:      https://themeisle.com/themes/your-them-name/
Author:         ThemeIsle
Author URI:     https://themeisle.com
Description:    Hestia is a modern WordPress theme for professionals. It fits creative business, small businesses (restaurants, wedding planners, sport/medical shops), startups, corporate businesses, online agencies and firms, portfolios, ecommerce (WooCommerce), and freelancers. It has a multipurpose one-page design, widgetized footer, blog/news page and a clean look, is compatible with: Flat Parallax Slider, Photo Gallery, Travel Map and Elementor Page Builder . The theme is responsive, WPML, Retina ready, SEO friendly, and uses Material Kit for design.
*/

Three: rezip your theme and install it again see then its working fine or not ? 三:将您的主题重新压缩并重新安装,然后查看其工作正常与否? for more check here 在这里查看更多

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM