• Resolved Vova P.

    (@vpadalko)


    Hello to everybody!

    I use WordPress 4.7.1 running kallyas-child theme.
    For editing pages I use Page builder.

    But, when I installed and activated Autopromize my Page builder stops working, and I see 504 Gateway Timeout page with next message:
    “The gateway did not receive a timely response from the upstream server or application.”
    If I just deactive Autoptimize the Page builder can work again without any troubles.

    Could you please support me and please advice how to solve it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Vova P.

    (@vpadalko)

    I have find short solution here in https://uk.www.ads-software.com/plugins/autoptimize/faq/:

    Visual Composer, Beaver Builder and similar page builder solutions are broken!!
    These page builder plugins run on the frontend for logged in users and are very JavaScript intensive and should not be optimized. You can tell Autoptimize not to act on these page-builder powered pages for logged in users with this code:

    add_filter('autoptimize_filter_noptimize','pagebuilder_noptimize',10,0);
    function pagebuilder_noptimize() {
      if (is_user_logged_in()) {
        return true;
      } else {
        return false;
      }
    }

    But could you please advice me where should I add this code (in which file)?
    Thanks a lot in advance.

    Plugin Author Frank Goossens

    (@futtta)

    you can use something like the code snippets plugin or -if you know what you’re doing- in your (child) theme’s functions.php ??

    Thread Starter Vova P.

    (@vpadalko)

    Dear Frank,
    Thank you very much for your reply.
    I don’t want make additional loading with ‘snippets plugin’ (I mean if it will be additional plugin, so it will be additional impact on my site speed), so can I change my functions.php manually?
    If I correct I see it in next wey:
    1. to find functions.php in ftp, = /wp-content/themes/kallyas-child/functions.php
    2. to use Notepad++ to open and change functions.php
    3. to add code (that I have posted below) to functions.php

    Am I correct with my conclusions?

    • This reply was modified 7 years, 10 months ago by Vova P..
    Thread Starter Vova P.

    (@vpadalko)

    Dear Frank,
    I’ve installed “Code Snippets” plugin, and just add this code, and now my Page Builder works very well together with Autoptimize plugin.

    That’s what I was looking for.
    Thanks a lot!

    Plugin Author Frank Goossens

    (@futtta)

    you’re welcome @vpadalko ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page builder does not work with Autoptimize’ is closed to new replies.