• Resolved 2Beards Design

    (@2beards)


    Hi. have some problem with Simple Static generation. First of all need not all scripts to be included. On dev website I’ve managed to exclude those, which aren’t needed.

    <script id="ct-scripts-js-extra">var ct_localizations = {"expand_submenu":"Rozwiń menu","collapse_submenu":"Zwiń rozwijane menu","public_url":"\/wp-content\/themes\/blocksy\/static\/bundle\/","dynamic_styles":{"lazy_load":"\/wp-content\/themes\/blocksy\/static\/bundle\/non-critical-styles.min.css?ver=2.1.10"},"dynamic_js_chunks":[{"id":"blocksy_sticky_header","selector":"header [data-sticky]","url":"\/wp-content\/plugins\/blocksy-companion\/static\/bundle\/sticky.js?ver=2.1.10"}],"dynamic_styles_selectors":[{"selector":".ct-header-cart, #woo-cart-panel","url":"\/wp-content\/themes\/blocksy\/static\/bundle\/cart-header-element-lazy.min.css?ver=2.1.10"},{"selector":".flexy","url":"\/wp-content\/themes\/blocksy\/static\/bundle\/flexy.min.css?ver=2.1.10"},{"selector":"#account-modal","url":"\/wp-content\/plugins\/blocksy-companion\/static\/bundle\/header-account-modal-lazy.min.css?ver=2.1.10"},{"selector":".ct-header-account","url":"\/wp-content\/plugins\/blocksy-companion\/static\/bundle\/header-account-dropdown-lazy.min.css?ver=2.1.10"}]};</script>

    But on static generated site all scripts are there. Moreover there are mixed contents because of http instead of https and there are dev urls and I need relative paths. Example of wrong paths:

    <script id="ct-scripts-js-extra">
    var ct_localizations = {"ajax_url":"http:\/\/test-cms.dev\/wp-admin\/admin-ajax.php","public_url":"http:\/\/test-cms.dev\/wp-content\/themes\/blocksy\/static\/bundle\/","rest_url":"http:\/\/test-cms.dev\/wp-json\/","search_url":"http:\/\/test-cms.dev\/search\/QUERY_STRING\/",

    Thank’s in advance. Great theme. Thinking of Premium

Viewing 1 replies (of 1 total)
  • Eduard

    (@cteduard)

    Hello @2beards

    Could you please let us know more about how these exclusions were made? Additionally, have you tried testing an exclusion with a different theme, to rule out a possible malfunction of the exclusion system?

    Regarding the absolute paths, I’m afraid that’s not correctly assessed. We do not have any code in our theme that has an absolute path, since this is not a good practice. This is most likely caused by an incorrect setup configuration, possibly at the server level. Have you thoroughly verified that SSL is set up correctly on your end?

    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Simple Static integration’ is closed to new replies.