• Resolved rbroggero

    (@rbroggero)


    Hi there
    I’m using the plugin but i want to exclude some scripts to keep it on the head but it doesn’t work
    Maybe I’m using the wrong slug for them.
    On the head they appear like this
    /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
    /wp-includes/js/jquery/jquery.js?ver=1.12.4
    Can you help me please?

    Thanks!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hello!

    Thanks for reaching out.

    Both of those are scripts that frequently are needed by others and come prepacked with WordPress. If you have another script on your site that uses jQuery, then it will only output that script if it outputs jQuery beforehand (either in the head or in the footer before the specific script).

    jQuery is also commonly needed in the head for scripts and elements to function properly, so there is a checkbox setting specifically for “Keep jQuery in the header” on the settings page (Settings > Script to Footer) to help fix those issues.

    If that is checked, then jQuery and (if it’s needed) jQuery migrate will appear in the head without the need to use the ‘exclude’ filter.

    Hopefully that helps clarify, but let me know if you have any further questions – happy to help!

    Thanks,
    Joshua

    Thread Starter rbroggero

    (@rbroggero)

    Joshua thanks for your quick response
    But I already check that checkbox and it still doesn’t appear on the head

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Can you confirm a few things to help me debug the issues?

    – You’re using the most current version (0.6.2) of Scripts to Footer
    – You’re using the most current version (4.9.8) of WordPress
    – You’ve enabled the plugin, checked the “Keep jQuery in the header” box on the settings page
    – No other modifications to the plugin are in place (no custom code, filters, etc)
    – The page(s) in question do not have the plugin disabled (you can disable STF on specific pages via a checkbox on the page edit screen)

    Assuming the above, it sounds like you want to keep jQuery in the head and it’s still showing up in the footer. Is that correct? Or is there another script (not jQuery or jQuery migrate) the you want to see in the head in addition to jQuery, and that’s not showing up? If the latter, please let me know which script.

    Also, if you can provide a link to the site with the plugin active and the above settings in place, that might be helpful.

    Thanks,
    Joshua

    Thread Starter rbroggero

    (@rbroggero)

    It was not activated but I already did it. The rest of the points are ok.
    -Scripts to Footer (0.6.2)
    -WordPress(4.9.8)
    -Checked “Keep jQuery in the header”
    -Plugin Enable
    -No other modifications to the plugin are in place

    In first place I want jQuery or jQuery migrate on the head to see if the page is not broken because of that.
    the link is this :
    https://tienda.tendenciazero.com/depilacion

    Sorry for my english!!!

    • This reply was modified 6 years, 3 months ago by rbroggero.
    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Happy to help!

    Looking at the site, it appears you’re actually running WordPress version 4.8.7, but that shouldn’t cause any issues.

    I can confirm that jQuery is loading in the footer, ahead of all the other scripts which are in the footer as well – this is the typical, expected outcome with default settings.

    If your theme is using wp_enqueue_script correctly, then the “Keep jQuery in the Header” setting should place jQuery and jQuery migrate in the head. I haven’t encountered any similar errors with this functionality and there’s not anything I can see on your site that would lead me to believe the plugin isn’t working correctly.

    That said, it’s entirely possible there’s an issue with the plugin, but I’d like to rule out user error and theme/plugin conflicts. A couple more follow up questions:

    – Is this issue occurring on all your pages or localized to a specific page(s)?
    – Are you using any caching plugin? (caches might need to be cleared to see changes)

    Would you feel comfortable with granting me access to the backend of your site to verify settings and such? DO NOT post login information in this forum, but you can add me as an administrator using my email address: [email protected] and I should receive a login email, from there I can take a quick look and then you can delete my user after we’ve resolved the issue.

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Actually, full stop. I just noticed your using bwp-minify, which I believe circumvents some of the built-in wp_enqueue_script process and is not compatible with Scripts to Footer because of this.

    BWP Minify is a plugin that doesn’t appear to be supported by the developer any longer and in the past I have been unable to resolve conflicts with it.

    I can try to look again at this plugin conflict, but I will likely not have a solution anytime soon.

    Thread Starter rbroggero

    (@rbroggero)

    I disabled the BWM plugin and now it seems to work !!! Thank you so much !!!
    You really saved my life

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Awesome, glad that’s working for you now! I’m going to close this ticket, but feel free to reach out again if you have any other issues.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘SLUG FOR EXCLUDE’ is closed to new replies.