-
AuthorPosts
-
October 9, 2018 at 1:46 am #1019287
I like to have a different design bbpress form main site which is used enfold. I tried this:
https://kriesi.at/support/topic/can-i-put-everything-bbpress-back/#post-843251
but not work.Please help, thanks!
October 9, 2018 at 1:52 pm #1019499Hey debra15,
Thank you for using Enfold.
Do you want to remove the theme’s default style for the bbPress plugin? Add this code in the functions.php file.
function wp_change_bbcss() { wp_dequeue_style( 'avia-bbpress' ); wp_deregister_style( 'avia-bbpress' ); } add_action( 'bbp_enqueue_scripts', 'wp_change_bbcss', 9999 );
Best regards,
IsmaelOctober 9, 2018 at 9:17 pm #1019668Yes, I want to remove the theme’s default style for the bbPress plugin.
I put the code in enfold-child/functions.php, but the forums still show the same style as the whole site.
October 10, 2018 at 4:47 am #1019745Hey!
I adjusted the code a bit — used a different action hook. Please try it again.
Best regards,
IsmaelOctober 11, 2018 at 8:03 pm #1020469It did work, but the original bbpress style is gone too. Can it just switch back to original bbpress style? Thanks!
October 15, 2018 at 5:32 am #1021371Hi,
The code above should not affect the default plugin style. Can we take a look at the forum page?
Best regards,
IsmaelOctober 17, 2018 at 7:47 am #1022592please check it in the “Private Content”.
October 17, 2018 at 2:57 pm #1022790Hi,
Thanks for the update. Disable the theme’s Performance > File Compression settings temporarily. Enable the settings back once you’re completely done with the site.
Best regards,
IsmaelOctober 18, 2018 at 12:51 am #1023069I tried it, but still not work. It seems like /wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5.14-6684 is not included.
- This reply was modified 6 years, 2 months ago by debra15.
October 18, 2018 at 12:05 pm #1023309Hi,
Thanks for the update. Try this code in the functions.php file.
add_action('after_setup_theme', 'avf_register_default_bbpress_style', 1000 ); function avf_register_default_bbpress_style() { remove_filter('bbp_default_styles', 'avia_bbpress_deregister_default_assets', 10, 1); }
Best regards,
IsmaelOctober 21, 2018 at 7:11 am #1024437Right now the forum is kind of mix and match. The Style is part of bbpress and part of enfold .
Like the profile is from bbpress, the froms ,forum and topic areOctober 22, 2018 at 1:07 am #1024636Hi,
You have to add that code along with the previous one.
add_action( 'bbp_enqueue_scripts', 'wp_change_bbcss', 9999 ); function wp_change_bbcss() { wp_dequeue_style( 'avia-bbpress' ); wp_deregister_style( 'avia-bbpress' ); } add_action('after_setup_theme', 'avf_register_default_bbpress_style', 1000 ); function avf_register_default_bbpress_style() { remove_filter('bbp_default_styles', 'avia_bbpress_deregister_default_assets', 10, 1); }
Best regards,
IsmaelOctober 22, 2018 at 7:24 am #1024708THANKS!! It works!
October 23, 2018 at 11:22 am #1025343Hi,
Cool! Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.Thank you for using Enfold :)
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.