WordPress always needs a server unless downloaded to static HTML pages with tools like https://wordpress.org/plugins/export-wp-page-to-static-html/. After using such a plugin and having a local HTML folder, you can use the fallback mode of WebViewGold. This mode uses an HTML folder if the user is offline and uses a remote URL he/she is online. Set “offlinelocalhtmlswitch” to “true” in Config.swift (iOS) and/or “FALLBACK_USE_LOCAL_HTML_FOLDER_IF_OFFLINE” to “true” in Config.java (Android). However, on iOS, you may need to eliminate the subfolders in your “local-www” folder (e.g., “js” and “CSS”) and put all the files they contain into the main folder (“local-www”). A search & replace program can help adjust the HTML file path references fast and uncomplicatedly.
- Knowledge Base
- WebViewGold for Android
- How can I include the offline mode for a WordPress site?
Article sections
Related Articles
- Solving the “Writable dex file is not allowed” Crash in Android Apps
- Google Play Target API Level 34 Requirement: What Developers Need to Know
- May 2024: WebViewGold Integrates Pushwoosh for Enhanced Mobile App Notifications – How To Use It?
- Can You Convert a Website to an App: Unlocking Mobile Potential for Your Business?
- How to Hide the Android App Links/"Deeplinking Not Configured Correctly" Warnings in Play Store for WebViewGold Users
- How to add Basic Web Authentication Login Support to Android WebView-Based App?
- Value of type 'WKWebView' has no member 'isInspectable'
- "Unable to Install" Xcode error
- How to prevent Non-HTTPS connections in WebViewGold for iOS? | Removing NSAllowsArbitraryLoadsInWebContent from Info.plist
- How to fix "Run custom shell script '[CP] Embed Pods Frameworks'" in Xcode 14.3+?