Skip to main content
edited body
Source Link
Krzysiek Dróżdż
  • 25.5k
  • 9
  • 53
  • 74

How can I enqueue a CSS code only on the pages which use that CSS?

Usually it's quite easy to know if a particular CSS or JS is used on a wordpressWordPress Post: it's enough to check if the shortcode is used in that post.

Is there any WP functionality to support the developer in this task?

How can I enqueue a CSS code only on the pages which use that CSS?

Usually it's quite easy to know if a particular CSS or JS is used on a wordpress Post: it's enough to check if the shortcode is used in that post.

Is there any WP functionality to support the developer in this task?

How can I enqueue a CSS code only on the pages which use that CSS?

Usually it's quite easy to know if a particular CSS or JS is used on a WordPress Post: it's enough to check if the shortcode is used in that post.

Is there any WP functionality to support the developer in this task?

edited tags; edited title
Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

Wordpress: Enqueue CSS and Script only if needeed

Source Link
Revious
  • 323
  • 3
  • 15

Wordpress: Enqueue CSS and Script only if needeed

How can I enqueue a CSS code only on the pages which use that CSS?

Usually it's quite easy to know if a particular CSS or JS is used on a wordpress Post: it's enough to check if the shortcode is used in that post.

Is there any WP functionality to support the developer in this task?