宝塔面板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
激活它后,您需要转到选项卡:外观»添加页面模板
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 。
翻译自: https://www.wpbeginner.com/plugins/how-to-duplicate-theme-files-from-wordpress-admin-panel/
宝塔面板wordpress