• Resolved pardeepsingh

    (@pardeepsingh)


    hi can you please look at this website
    https://wildswood.com/
    on homepage you will see at middle right of screen box . when you click that it moves the box to left . so here we have mailhimp optin form which is displayed by this plugin .

    now the problem is every page has that box .because its coded in function.php .and we need that also on every page . so problem in this . plugin scripts and styles files only loading on homepage . when you on another page like contact or blog .you can visit any page and check the source of page . nor scripts neither styles are loading on that pages .

    so then user is not able to subscriber on that form
    can you please look and let me know how it can be sorted

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @pardeepsingh,

    It’s working on:
    https://wildswood.com
    https://wildswood.com/warranty-registration/
    https://wildswood.com/infinite-series/

    It’s not working on:
    https://wildswood.com/about-us/
    https://wildswood.com/about-shipment/

    The reason these pages are working is that they have another MailChimp form on them, and that is the form enqueue’ing the scripts.

    What this means is that the plugin you’re using to create the sidebox is executing too late so our calls to wp_enqueue_script and wp_enqueue_style are not working. This is an issue with the other plugin and there is no way for us to fix that. However, as a workaround, I would recommend using a MailChimp form or widget in your footer. Does that work?

    Let me know,
    Kevin.

    • This reply was modified 7 years, 8 months ago by yikesitskevin.
    Thread Starter pardeepsingh

    (@pardeepsingh)

    the sidebar form is also from Easy Forms for MailChimp plugin . its displayed by shortcode
    we are using only one mail chimp plugin and that is Easy Forms for MailChimp

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    I understand the sidebar form is coming from our plugin. The issue is the plugin you are using the generate the sidebar itself – not the form – is executing too late in the WordPress cycle for scripts and styles to be enqueued. Does that make sense?

    Thread Starter pardeepsingh

    (@pardeepsingh)

    thanks you were right
    actually i added that action in wp_footer . but that priority was given 9999
    so that’s why its loading so late.
    i deleted the priority now its running fine
    please mark this resolved .

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Awesome, I’m glad you were able to get things sorted out.

    Have a good day.
    Tracy

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘scripts and style not loading on pages’ is closed to new replies.