• Resolved yourfluf

    (@yourfluf)


    For cookielawinfo_table_shortcode() in cookie-law-info/legacy/public/modules/shortcode/shortcode.php – please can you conditionally call these lines:
    /** RICHARDASHBY EDIT: only add CSS if table is being used */

    wp_enqueue_style( $this->plugin_name . ‘-table’ );

    /** END EDIT */

    Or can you add a do_action so I can hook in an dequeue myself

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @yourfluf,

    Greetings from CookieYes!

    We couldn’t make any changes to this shortcode as it may effect the existing users. If you could explain the issue you are facing along with the site’s URL, we will try to provide you with a custom solution.

    Thread Starter yourfluf

    (@yourfluf)

    That style I mentioned above is not required to be enqueued on every single page, yet you do that (even when the cookie message doesn’t appear) on line 167 of the file. Can you provide some sort of hook that allows developers to dequeue the style else it affects the performance of the site or change the code so that the wp_enqueue_style in cookielawinfo_table_shortcode() is enqueued more selectively

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @yourfluf,

    This cookie audit table style will be enqueued to all pages with cookie banner if your cookie category description consists of this [cookie_audit] shortcode. You can remove this shortcode from each cookie category by editing them from the Cookie Category menu.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @yourfluf,

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please allow dequeueing of cookie-law-info-table’ is closed to new replies.