What function is used to enqueue a CSS stylesheet in WordPress?

WordPress Fundamental Easy

WordPress Fundamental — Easy

What function is used to enqueue a CSS stylesheet in WordPress?

Key points

  • wp_enqueue_style() is the proper function for adding CSS stylesheets in WordPress.
  • wp_add_style() and wp_register_style() are not valid functions for enqueuing stylesheets.
  • add_stylesheet() is not a built-in WordPress function for enqueuing stylesheets.

Ready to go further?

Related questions