• Resolved nielk

    (@nielk)


    Hello Everyone, Good Day!

    I just want to ask for your help on the issue I am encountering on my website. Currently, I have a ConvertKit plugin installed to my wordpress website and hosted using SiteGround, with this I have also a SiteGround Optimizer plugin installed. Now, I added a form to the content of my site from the ConvertKit plugin and it is working and showing when I try to preview my site in WordPress after finalizing my changes I noticed on my live website it did not show the changes I made specifically from the ConvertKit form so I did some research and found out that a caching plugin needs to be deactivate for it to reflect and so I did try it on my end and fortunately it works. I tried researching alternative solution without deactivating the SG Optimizer plugin and found out that just needs to exclude some files on CSS and Javascripts but it did not works on my end.

    could you help me with this issue? I’ll appreciate it if you can provide an alternative solution that involves of not deactivating the SG Optimizer.

    Thank you,

    Nielk

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Tsvetan Mitev

    (@tsvetanm)

    Hello @nielk,

    I suspect that the problem most likely comes from the external JS script that the plugin calls on the form pages. The script in question comes from the system ConvertKit domain. You can exclude the external script form the JS Combine option with the following filter we’ve designed for that purpose. Here’s an example of the code:

    add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' );
    function js_combine_exclude_external_script( $exclude_list ) {
    $exclude_list[] = 'your.covertkit.domain';
    return $exclude_list;
    }

    You need to replace “your.convertkit.domain” with your actual ConvertKit domain name. You can find the system domain in the Domains section of your ConvertKit account.

    You can add the filter in the functions.php file of the currently active theme. Other alternative is to include it at the bottom of the wp-config.php file, as this way the theme updates will not overwrite the custom filter. All of the available custom filters can be found in our official documentation.

    In case you are still experiencing issues, even after excluding the external script, my recommendation is to check for any other scripts which might interfere with the JS/CSS options. The following procedure provides guidance on how you can do that.

    If you are having troubles narrowing down the problem and you are a SiteGround customer, please contact our Technical Support team and we will further look into this.

    Best Regards,

    Tsvetan Mitev

    Thread Starter nielk

    (@nielk)

    Hi Tsvetan,

    Thank you for your response. will it be ok if I add the code snippet using a File Manager from the SiteGround site?

    Plugin Support Tsvetan Mitev

    (@tsvetanm)

    Yes, you can use File Manager in Site Tools to add the code snippet.

    Best Regards,

    Tsvetan Mitev

    Thread Starter nielk

    (@nielk)

    Hello Tsvetan,

    The fix you provided works now on my website. Thank you very much for your help.

    Warmest regards,

    Nielk

    Plugin Support Tsvetan Mitev

    (@tsvetanm)

    You are most welcome!

    Best Regards,

    Tsvetan Mitev

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SG Optimizer doesn’t work with ConvertKit plugin’ is closed to new replies.