- This topic has 0 replies, 1 voice, and was last updated 13 years, 9 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Tech › Web Development › wp_head() doesn't work in bbPress
When integrating WordPress and bbPress into one nice package, I’ve notice that none of my “jquery” scripts would load in the header. I traced the problem to a WP function
<?php wp_head(); ?>
that loads tons of various scripts and feeds into <HEAD> element of the page.
Function wp_head() is loaded with various actions inside wp-includesdefault-filters.php
add_action( 'wp_head', 'wp_enqueue_scripts', 1 );
add_action( 'wp_head', 'feed_links', 2 );
add_action( 'wp_head', 'feed_links_extra', 3 );
add_action( 'wp_head', 'rsd_link' );
All we need to do, is to add these lines to bbPress template “functions.php” fie.
© 2017 DomainWebCenter.com. All Rights Reserved. | Disclaimer | Contact the Editor