How it works...
We started the process by looking at the home page of the Twenty Twenty theme on a mobile device. The design looks similar to the desktop version, apart from the menu, which has been changed to a single button.
Then, we configured the settings for the plugin. In the General Settings section, we can find a setting called Display WPtouch for mobile visitors. This setting is used by the WPtouch plugin to enable/disable a mobile theme. This is enabled by default, and hence the mobile theme will be activated on the site as soon as we activate the plugin in the Getting ready section. Once the user requests a URL for the site, the plugin checks whether this setting is enabled and whether the user is accessing the site through a mobile ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access