Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You only want the scripts and styles referenced on the home page and not elsewhere?

    Wrap your wp_enqueue_* calls in a conditional. For example:

    if ( is_home()) {
       // make your wp_enqueue_* calls here
    }
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.