宝塔面板wordpress_如何从WordPress管理面板复制主题文件

宝塔面板wordpress

Have you ever worked on a client’s site who is not willing to give you FTP? The hardest part about that is you cannot create new template files, nor you can duplicate an existing template file. In this article, we will share with you a plugin that allows theme authors to clone an existing template file from the WordPress admin panel. This will keep you from having to download, rename and re-upload new files via FTP.

您是否曾经在不愿意给您FTP的客户站点上工作? 最困难的部分是您不能创建新的模板文件,也不能复制现有的模板文件。 在本文中,我们将与您共享一个插件,该插件允许主题作者从WordPress管理面板中克隆现有模板文件。 这将使您不必通过FTP下载,重命名和重新上传新文件。

First thing you need to do is install and activate Theme File Duplicator Plugin.

您需要做的第一件事是安装并激活主题文件复制器插件

Once you have activated it, then you need to go to the tab: Appearance » Add Page Template

激活它后,您需要转到选项卡:外观»添加页面模板

Theme File Duplicator Admin Preview

As you can see in the screenshot above, you need to select the template file to copy, and all you need to do is assign a new filename. This plugin has another neat feature which allows you to add a template name. You can check that box and specify the template name. The template name will allow you to specify a custom page template.

如您在上面的屏幕截图中所见,您需要选择要复制的模板文件,而您要做的就是分配一个新的文件名。 该插件还有另一个简洁的功能,可让您添加模板名称。 您可以选中该框并指定模板名称。 模板名称将允许您指定自定义页面模板

The only downside to this plugin is that it is not fully compatible with child themes. If you are using a child theme, the new theme file will be added in the parent theme (which is not ideal).

该插件的唯一缺点是它与子主题不完全兼容。 如果使用的是子主题,则新主题文件将添加到父主题中(不理想)。

If you were looking for a way to clone an existing template file from the WordPress admin area, then you should download Theme File Duplicator Plugin.

如果您正在寻找一种从WordPress管理区域克隆现有模板文件的方法,则应下载Theme File Duplicator Plugin

rack card printing with fast turnaround speed. 机架卡打印

翻译自: https://www.wpbeginner.com/plugins/how-to-duplicate-theme-files-from-wordpress-admin-panel/

宝塔面板wordpress

宝塔面板可以通过一键部署WordPress网站插件来安装WordPress,但是它的版本较老,需要在WordPress后台进行升级。另外,你也可以选择手动部署WordPress,这样可以保证安全性并且拥有最新的安装程序。以下是手动建立WordPress站点的步骤: 1.首先,你需要到WordPress官网下载最新的安装程序,这样可以确保你安装的是最新版本。 2.下载完成后,在宝塔面板中添加一个站点。 3.在宝塔面板的站点管理页面,点击你要安装WordPress的站点,然后点击网站根目录进入文件管理器。 4.将下载好的WordPress安装程序上传到网站根目录下。你可以将其解压缩并重命名为"wordpress"文件夹。 5.完成上传后,你可以删除之前上传的WordPress压缩包,因为它已经不再需要。 6.现在,你可以打开浏览器,输入你的域名或IP地址,访问你的WordPress安装页面。 7.按照安装页面上的指示,填写数据库的相关信息,包括数据库名、用户名、密码和主机。如果你还没有创建数据库,可以在宝塔面板的数据库管理页面创建一个新的数据库。 8.完成数据库信息的填写后,点击"提交"按钮,WordPress将开始安装。 9.安装完成后,你将看到一个成功安装的页面,其中包含你的WordPress管理员用户名和密码。记下这些信息,以便后续登录和管理你的WordPress网站。 至此,你已经成功地在宝塔面板上安装了WordPress。你可以通过输入你的域名或IP地址,访问你的WordPress网站,并使用管理员账号登录后台进行站点的管理和配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [使用宝塔面板搭建WordPress网站(图文教程)](https://blog.csdn.net/colorfulyan/article/details/108713410)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [真正从零开始搭建网站:云服务器+宝塔面板+wordpress(超详细教程)](https://download.csdn.net/download/weixin_38529251/14052322)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值