Home Forums Tech Web Development wp_head() doesn't work in bbPress

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2296
    Udar Gromov
    Keymaster

    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.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.