Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Updating issue

@solserpiente

Participant

Hi
Sorry, you are right.

I enqueue my styles from my theme function.php file, in this way:
wp_enqueue_style( 'showcase', get_bloginfo( 'stylesheet_url' ) );

If I use this code in header.php it works:

if ((bp_is_user()) || (bp_current_component('groups')) ){
<link rel='stylesheet' id='showcase-css'  href='http://mysite.com/theme/style.css?ver=4.1' type='text/css' media='all' />
}

But if I use this in functions.php not works:

if ((bp_is_user()) || (bp_current_component('groups')) ){
wp_enqueue_style( 'showcase', get_bloginfo( 'stylesheet_url' ) );
}

Obviously, I have found the solution with code in header.php, but I am curious to know what has changed in the buddypress code for this to happen.

Thank you for your attention

Best regards

Skip to toolbar