在不使用插件的情况下将WordPress网站转换为PWA



我对WordPress有一点经验,但对PWA来说是全新的。

有没有一种方法可以在不使用任何插件的情况下将WP网站转换为PWA?

我注意到WordPress中的大多数PWA插件并没有像我预期的那样正常工作。

感谢你对这个问题的回答。

从wordpress.org下载wordpress移动包wordpress插件

Go to the ‘Plugins’ / ‘Add new’ menu
Upload wordpress-mobile-pack.zip then press ‘Install now’.
Enjoy.

全面设置

更全面的设置过程和配置指南如下。

Locate your WordPress install on the file system
Extract the contents of wordpress-mobile-pack.zip into wp-content/plugins
In wp-content/plugins you should now see a directory named wordpress-mobile-pack
Login to the WordPress admin panel at http://yoursite.com/wp-admin
Go to the ‘Plugins’ menu.
Click ‘Activate’ for the plugin.
Go to the ‘WP Mobile Pack’ admin panel.
Go to the ‘Look & Feel’ tab. Choose color schemes, fonts and add your own logo and app icon.
Go to the ‘Content’ tab. Disable, enable or order categories and pages depending on what content you want to show in the mobile web app.
Go to the ‘Settings’ tab to choose a Display Mode and add your Google Analytics ID.
Access your site in a mobile browser and check if the application is displayed. If the app is not loading properly, make sure that the file exporting the content – http://yoursite.com/{your plugins folder}/wordpress-mobile-pack/export/content.php – can be accessed in the browser and doesn’t return a ‘404 Not Found’ or ‘403 Forbidden’ error.
You’re all done!

是的,您可以创建WordPress的PWA或任何启用HTTPS的响应网站。不需要任何插件。

  1. 访问PWA Builder
  2. 输入网站URL
  3. 填写应用程序名称、说明、图标、主题颜色等
  4. 生成&下载PWA(ZIP格式(
  5. 现在按照PWA文档中给出的步骤进行操作

最新更新