Wordpress初始安装。版本5.3
index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
test
</body>style.css
/*
Theme Name: Gerboni
Theme URI: http://linards-berzins.co.uk/
Author: Linards Bērziņš
Author URI: http://linards-berzins.co.uk/
Description: Woocommerce theme for online shop
Version: 1.0
Text-domain: gerboni
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, blog, custom-menu, custom-logo, featured-images,footer-widgets, theme-options, translation-ready, right-sidebar, sticky-post, threaded-comments
*/主题外观仪表板:

任何建议都很感激。
发布于 2019-11-27 09:55:34
您还需要为自定义主题创建header.php、sidebar.php、footer.php。
发布于 2019-11-27 17:55:20
看起来你并没有从你发布的文章中建立起一个完整的主题,所以也许你可以在你的问题中添加更多的信息。
但是,我认为您应该先在这里读一读,以检查是否正确:如果仍然有问题,https://codex.wordpress.org/Theme_开发会再次发帖。
然后将现有的主题复制到一个新的文件夹中,并开始修改它们以了解它们的工作方式,然后尝试构建自己的主题。
然后,当您对工作方式更加熟悉时,请查看以下有关子主题的信息:https://developer.wordpress.org/themes/advanced-topics/child-themes/
https://wordpress.stackexchange.com/questions/353165
复制相似问题