• Resolved stevethefootycoach

    (@stevethefootycoach)


    Hi guys.

    my site – broughtonschoolofmotoring.com – was made with X theme and Cornerstone (the visual editor).

    After adding Autoptimize, Cornerstone stopped working and, oddly, the drop down navigation stopped working.

    The X theme people suggested I disable Autoptimize and all was well again.

    But I really like Autoptimize and I like X. Is there a way to make them play well together?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Is there a way to make them play well together?

    sure, have a look at the troubleshooting-tips in the FAQ @stevethefootycoach (for the menu; look at the browser console what JS errors are showing and based on that exclude specific JS from optimization, for cornerstone you’ll have to look at the FAQ entry about visual editors).

    <rant>concerning the X team’s response; simply saying “disable AO” is plain lazy. when buying a premium theme one would expect just a tad more involvement …</rant>

    frank

    Thread Starter stevethefootycoach

    (@stevethefootycoach)

    Hi Frank

    Thanks for that!

    I agree about the X support team. Not exactly helpful.

    Where should I put this code?:

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

    Plugin Author Frank Goossens

    (@futtta)

    you can use the code snippets plugin for that or if you insist add it in your child theme’s functions.php (but there’s some risks, e.g. of your changes being overwritten with the next theme upgrade).

    frank

    Thread Starter stevethefootycoach

    (@stevethefootycoach)

    Thanks.

    I’ve done that but the visual editor is still not working.

    I’ll see what the X theme people say (but not holding my breath…)

    Plugin Author Frank Goossens

    (@futtta)

    it seems AO is disabled now, so if your visual editor doesn’t work there’s something else going on.

    had a quick look and see multiple “jQuery is not defined”-errors and in the HTML source I see jquery.js is loaded very late with the defer-attribute fromajax.googleapis.com, so it looks as though you have (yet) another plugin interfering here (“async javascript” and/ or “use google libraries” maybe)?

    Thread Starter stevethefootycoach

    (@stevethefootycoach)

    Hi Frank

    Thanks for the tip.

    I’ve removed WP Super Minify and the problems have gone. Cornerstone is working again.

    Thank you very much for all your help and advice. You put the X support people well into the shade!

    Plugin Author Frank Goossens

    (@futtta)

    good job Steve, happy it works! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not playing well with X theme…’ is closed to new replies.