Using is_bbpress()
-
Why I could not use this condition:
if(is_bbpress()){
add_action( ‘wp_head’, function () { ?>
<style id=”foorumi”>Site crashed, when I try to use the if-statement with wp_head function.
My idea was to output CSS for bbPress only on forum area. If I could limit it with PHP, browsers would not need even get the CSS at all.Correspond I would like to use if statement to prevent CSS rendering, which bbPress doesn’t need at all.
I tried priorities 0,10 and some over 10.
if(is_bbpress()) works fine with my own functions.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using is_bbpress()’ is closed to new replies.