Title: Some Tips: Use hook wp_enqeue_scripts instead wp_head
Last modified: August 22, 2016

---

# Some Tips: Use hook wp_enqeue_scripts instead wp_head

 *  Resolved [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/some-tips-use-hook-wp_enqeue_scripts-instead-wp_head/)
 * This prevents several issues!
 * Also:
    - kbe_admin_style.css should only be loaded on kbe admin pages, not on all pages.
      It should also be loaded with wp_enqeue_style.
    - The google fonts should be loaded over https or via //google.com/linkto/googlefonts.
      js
    - Your are getting the post id with a performance lasting sql query. (using 
      LIKE is a bad practice, especially on the post_content row which can be very
      large), better use the global object $post and access the id with $post->id
 * This so far from my side. All in all your plugin is the best one i ve found. 
   Even the premium ones on codecanyon are not good as this one. Please keep developing
   it.
 * Thanks for sharing it.
 * [https://wordpress.org/plugins/wp-knowledgebase/](https://wordpress.org/plugins/wp-knowledgebase/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/some-tips-use-hook-wp_enqeue_scripts-instead-wp_head/#post-5907329)
 * You may also say in the description that shortcode [kbe_knowledgebase] is supported.
   People are looking for this:-)
 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/some-tips-use-hook-wp_enqeue_scripts-instead-wp_head/#post-5907520)
 * Thanks for pointing these out Rene. Always good to have another developer review
   your work! I’ll get working on these issues and release an update addressing 
   the points you’ve raised. Thanks again.
 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/some-tips-use-hook-wp_enqeue_scripts-instead-wp_head/#post-5907604)
 * Fixed in 1.0.4

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Some Tips: Use hook wp_enqeue_scripts instead wp_head’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-knowledgebase_c56559.svg)
 * [WordPress Knowledge base & Documentation Plugin - WP Knowledgebase](https://wordpress.org/plugins/wp-knowledgebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-knowledgebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-knowledgebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-knowledgebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-knowledgebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-knowledgebase/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/some-tips-use-hook-wp_enqeue_scripts-instead-wp_head/#post-5907604)
 * Status: resolved