WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: W3 Total Cache] Adding The Same JS To Multiple Groups (11 posts)

  1. manunkind
    Member
    Posted 4 years ago #

    I know exactly what I need to do but I can't seem to get the plugin to allow it. I would like to have the same JS script run in different groups. For example, I need it to load on Pages and Single posts only. The plugin will not allow this and throws an error that there is duplicate scripts. Apparently it only allows ONE JS script (of the same name) in ONE group.

    The feature is great but it should allow this or else why bother have the groups when the scripts will have to stay in Default and load on every page anyway.

    Is there a way to do this?

  2. manunkind
    Member
    Posted 4 years ago #

    Actually, it's the same for CSS too. Everything can only be in one group.

  3. Frederick Townes
    Member
    Posted 4 years ago #

    Confirmed, this is a bug. It will be fixed in the next release, meanwhile you can edit your configuration file directly: wp-content/w3-total-cache-config.php. If that's not acceptable contact me directly.

  4. manunkind
    Member
    Posted 4 years ago #

    I can wait until it's fully implemented and working correctly. No problem. Thank you for this awesome plugin!

  5. Frederick Townes
    Member
    Posted 4 years ago #

    Ok, well I have the fix ready, the bug was introduced when I expanded the minification handling to all templates.

  6. manunkind
    Member
    Posted 4 years ago #

    Any ETA for 0.8.5.2? Or will this just be rolled into the next full version? If it's right around the corner I can certainly wait. If it might be a while yet I'll contact you directly via your support form to get the fix.

  7. Frederick Townes
    Member
    Posted 4 years ago #

    It would likely be in the next full version.

  8. manunkind
    Member
    Posted 4 years ago #

    I can't get the syntax correct for the arrays. I sent you a support request via your form to hopefully get the fix for this.

  9. Frederick Townes
    Member
    Posted 4 years ago #

    Ok.

  10. manunkind
    Member
    Posted 4 years ago #

    The fix you sent me worked great. Thank you very much.

  11. Frederick Townes
    Member
    Posted 4 years ago #

    You're welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic