• Resolved sagetopia

    (@sagetopia)


    You provide an option for preventing the enqueuing of default stylesheets. However, the same functionality is not provided for the onclick action (in terms of enqueuing jquery colorbox and the custom wp rss script). I haven’t been able to figure out which hook I can use to dequeue those since they are being enqueued within add_shortcode(). Can you give me any insight here? I am not going to be using colorbox.

    https://www.ads-software.com/plugins/wp-rss-aggregator/

Viewing 1 replies (of 1 total)
  • Hi sagetopia!

    Currently there is no filter that would allow you to override this. However, you can achieve the result you have described by de-queuing the colorbox script, and the custom script that makes the links use colorbox. This is what worked for me:

    add_action('wp_footer', function() {
    wp_dequeue_script('jquery.colorbox-min');
    wp_dequeue_script('wprss_custom');
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Colorbox script enqueuing’ is closed to new replies.