Missing dependency (bbp-default)
-
Hi,
There’s an issue I’ve run into that’s due to the theme I’m using (evolve).
The theme deregisters the
bbp-default
style inwp-content/themes/evolve/inc/bbpress-support.php
on line 11. If I comment this line out, then obviouslybbp-default
gets loaded, but this also clashes with the theme’s styling, resulting in a jumbled mess.But the bbp style pack plugin requires the
bbp-default
style as a dependency inwp-content/plugins/bbp-style-pack/includes/generate_css.php
on lines 50 and 52. Withbbp-default
deregistered by my theme, bbp’s CSS never gets loaded. The code on line 52 is the code that is run in my case:else wp_register_style('bsp', plugins_url('css/bspstyle.css',dirname(__FILE__) ), array( 'bbp-default' ), $bsp_ver, 'screen');
If I remove the dependency like so:
else wp_register_style('bsp', plugins_url('css/bspstyle.css',dirname(__FILE__) ), array(), $bsp_ver, 'screen');
Then bbp’s CSS works as intended.
My question is what would be the best way to solve this?
I can’t re-register the
bbp-default
style, because that messes up the layout. But editing the bbp plugin files to remove the dependency will break on the next plugin update. Could I maybe load a dummybbp-default
style just to satisfy bbp’s dependncy?Or is there perhaps a bbp setting I overlooked that allows for disabling this dependency?
Thanks for your time, kind regards,
Bart Kuijper
- The topic ‘Missing dependency (bbp-default)’ is closed to new replies.