How to disable mobile optimization for website published in Web Presence Builder?

Created:

2016-11-16 12:45:19 UTC

Modified:

2017-04-24 12:12:44 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable mobile optimization for website published in Web Presence Builder?

Applicable to:

  • Plesk 12.5 for Linux
  • Web Presence Builder 12.0 for Linux
  • Web Presence Builder 12.0 for Windows
  • Web Presence Builder for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Web Presence Builder 11.5 for Linux

Question

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?

Answer

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:

  1. 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
  2. Go to working directory:

    # cd /usr/local/sb/
  3. 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
  1. Extract files:

    # unzip ppb_12.0.7_plesk_patch_4417.zip.zip
    Archive: 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
    inflating: htdocs/templates/generic/html.twig
    inflating: htdocs/templates/generic/js/helpers.js
    inflating: htdocs/templates/generic/js/view.js
    inflating: include/SB/Site/Compiler/Page.php
  2. Republish the website.

Have more questions? Submit a request
Please sign in to leave a comment.