wp_head() doesn't work in bbPress

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

This topic contains 0 replies, has 1 voice, and was last updated by  Udar Gromov 13 years ago.

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.