admin管理员组文章数量:1023867
I've been looking into creating a child theme in which I can make changes to my theme, but all the tutorials I can find assume that you're working with a local Wordpress installation, and explain how to create the necessary folders and files in a file manager like Windows Explorer.
Is it possible to create a child theme from within the Wordpress dashboard itself?
I've been looking into creating a child theme in which I can make changes to my theme, but all the tutorials I can find assume that you're working with a local Wordpress installation, and explain how to create the necessary folders and files in a file manager like Windows Explorer.
Is it possible to create a child theme from within the Wordpress dashboard itself?
Share Improve this question asked May 7, 2019 at 22:29 Hashim AzizHashim Aziz 2977 silver badges19 bronze badges2 Answers
Reset to default 3You will achieve this in two steps:
- uploading minimal files at yourdomain/wp-admin/themes.php
- editing child theme at yourdomain/wp-admin/theme-editor.php
The theme that you upload to your site via the admin console must contain three files. They will end up in your server's filesystem like this:
/wp-content/themes/parentname-child/functions.php
/wp-content/themes/parentname-child/screenshot.png
/wp-content/themes/parentname-child/style.css
When uploading, functions.php
can be empty, but style.css
must contain the required header comment at the very top of the file. While not strictly mandatory, screenshot.png
improves the user experience by giving the theme a thumbnail in the console. Once the child theme validates, it will show up in in your WordPress Theme Editor (e.g. yourdomain/wp-admin/theme-editor.php) where you can edit within the web console.
You can create the necessary files and folders on your local machine, zip them up, and then upload them as a new theme from the "Add New Theme" screen: https://wordpress-install.test/wp-admin/theme-install.php
Click on the Upload Theme button next to the page title.
I've been looking into creating a child theme in which I can make changes to my theme, but all the tutorials I can find assume that you're working with a local Wordpress installation, and explain how to create the necessary folders and files in a file manager like Windows Explorer.
Is it possible to create a child theme from within the Wordpress dashboard itself?
I've been looking into creating a child theme in which I can make changes to my theme, but all the tutorials I can find assume that you're working with a local Wordpress installation, and explain how to create the necessary folders and files in a file manager like Windows Explorer.
Is it possible to create a child theme from within the Wordpress dashboard itself?
Share Improve this question asked May 7, 2019 at 22:29 Hashim AzizHashim Aziz 2977 silver badges19 bronze badges2 Answers
Reset to default 3You will achieve this in two steps:
- uploading minimal files at yourdomain/wp-admin/themes.php
- editing child theme at yourdomain/wp-admin/theme-editor.php
The theme that you upload to your site via the admin console must contain three files. They will end up in your server's filesystem like this:
/wp-content/themes/parentname-child/functions.php
/wp-content/themes/parentname-child/screenshot.png
/wp-content/themes/parentname-child/style.css
When uploading, functions.php
can be empty, but style.css
must contain the required header comment at the very top of the file. While not strictly mandatory, screenshot.png
improves the user experience by giving the theme a thumbnail in the console. Once the child theme validates, it will show up in in your WordPress Theme Editor (e.g. yourdomain/wp-admin/theme-editor.php) where you can edit within the web console.
You can create the necessary files and folders on your local machine, zip them up, and then upload them as a new theme from the "Add New Theme" screen: https://wordpress-install.test/wp-admin/theme-install.php
Click on the Upload Theme button next to the page title.
本文标签: Is it possible to create child themes using the Wordpress Dashboard
版权声明:本文标题:Is it possible to create child themes using the Wordpress Dashboard? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745514377a2153971.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论