• Resolved jerrystampfer

    (@jerrystampfer)


    Hi there – I am tying to use a plugin feature – EAE wrapper link – but it won’t work.
    I contacted the plugin support and they have identified a javascript error that is causing the plugin feature not to work. When I inspected the element it is identifying errors in siteground optimizer.
    Could you please take a look at this and get back to me?
    The elements concerned are the purple columns at the top of the page immediately under the header image.
    Many thanks and best wishes,
    Jerry.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @jerrystampfer,

    We have investigated the issue and it appears that the error is due to a minified JS script. The error is not present once the Minify JavaScript Files option under SG Optimizer > Frontend > Javascript is deactivated.

    There is no need to keep that option deactivated as we have created custom filters that allow you to exclude the particular script handle that is causing the issue.

    You can exclude the script from being minified using the filter we’ve designed for that purpose. Here’s an example of the code, you can add to your functions.php file:`

    add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' );
    function js_minify_exclude( $exclude_list ) {
        $exclude_list[] = 'script-handle';
        $exclude_list[] = 'script-handle-2';
    
        return $exclude_list;
    }

    I tried to find the particular script handle that triggers the error but to no avail. You should contact the developers of the plugin and ask them to provide you with the handle that you would need to exclude.

    Best regards,
    Georgi Ganchev

    Thread Starter jerrystampfer

    (@jerrystampfer)

    Hi there – many thanks for your fast response. I’m not very technical so dealing with scripts is more than challenging for me. I will save what you have told me, though, but in the meantime I have sorted the problem by using an alternative, simpler, plugin.
    Many thanks for your help.
    Best wishes,
    J

    Plugin Support Georgi Ganchev

    (@georgiganchev)

    You are most welcome @jerrystampfer!

    Best wishes to you too.
    Georgi

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘javascript error’ is closed to new replies.