Optimize the website for viewing on mobile devices option is disabled for the website. But when opening the website on mobile device it is displayed in mobile view. How to disable mobile optimization for website?
This is a software issue #PPB-4417 , the fix will be included in one of the next
Web Presence Builder updates.
The following workaround can be used for Web Presence Builder 12.5 on Linux:
Back up original files:
# cp /usr/local/sb/htdocs/templates/generic/html.twig /usr/local/sb/htdocs/templates/generic/html.twig_orig
# cp /usr/local/sb/htdocs/templates/generic/js/helpers.js /usr/local/sb/htdocs/templates/generic/js/helpers.js_orig
# cp /usr/local/sb/htdocs/templates/generic/js/view.js /usr/local/sb/htdocs/templates/generic/js/view.js_orig
# cp /usr/local/sb/include/SB/Site/Compiler/Page.php /usr/local/sb/include/SB/Site/Compiler/Page.php_orig
Go to working directory:
# cd /usr/local/sb/
Download custom fix:
For Plesk 12.5:
# wget https://kb.plesk.com/Attachments/kcs-45934/ppb_12.5_plesk_patch_4417.zip.zip
For Plesk 12.0:
# wget https://kb.plesk.com/Attachments/kcs-45934/ppb_12.0_plesk_patch_4417.zip
# unzip ppb_12.0.7_plesk_patch_4417.zip.zip
replace htdocs/templates/generic/html.twig? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
Republish the website.