Title: Adding &#8220;id&#8221;s to styles and scripts
Last modified: March 6, 2022

---

# Adding “id”s to styles and scripts

 *  Resolved [invest0r7](https://wordpress.org/support/users/invest0r7/)
 * (@invest0r7)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/adding-ids-to-styles-and-scripts/)
 * Hi, we’re optimizing our site, and we disable styles and scripts on given pages
   using WordPress’ “wp_dequeue_style” and “wp_dequeue_script”.
 * Can you please add an id to the NSL inline styles and scripts so we can disable
   NSL on pages where it isn’t needed?
 * > [View post on imgur.com](https://imgur.com/9t605ns)
 * > [View post on imgur.com](https://imgur.com/Ib7kawR)
 * This would be so helpful. Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/adding-ids-to-styles-and-scripts/#post-15434589)
 * Hi [@invest0r7](https://wordpress.org/support/users/invest0r7/)
 * On the frontend we don’t call our styles and scripts in with the wp_enqueue_style()
   and wp_enqueue_script() functions but we rather write them out on specific actions.
 * If you don’t want our scripts and styles being loaded on certain pages, then 
   you should rather remove our functions from the actions using the remove_action()
   function of WordPress, as I suggested in this other topic:
    - [https://wordpress.org/support/topic/remove-css-js-from-unnecessary-pages/#post-13877528](https://wordpress.org/support/topic/remove-css-js-from-unnecessary-pages/#post-13877528)
 * Best regards,
    Laszlo.

Viewing 1 replies (of 1 total)

The topic ‘Adding “id”s to styles and scripts’ is closed to new replies.

 * ![](https://ps.w.org/nextend-facebook-connect/assets/icon.svg?rev=3336394)
 * [Nextend Social Login and Register](https://wordpress.org/plugins/nextend-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-facebook-connect/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/adding-ids-to-styles-and-scripts/#post-15434589)
 * Status: resolved