Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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!

    #1019499

    Hey 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,
    Ismael

    #1019668

    Yes, 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.

    #1019745

    Hey!

    I adjusted the code a bit — used a different action hook. Please try it again.

    Best regards,
    Ismael

    #1020469

    It did work, but the original bbpress style is gone too. Can it just switch back to original bbpress style? Thanks!

    #1021371

    Hi,

    The code above should not affect the default plugin style. Can we take a look at the forum page?

    Best regards,
    Ismael

    #1022592

    please check it in the “Private Content”.

    #1022790

    Hi,

    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,
    Ismael

    #1023069

    I 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.
    #1023309

    Hi,

    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,
    Ismael

    #1024437

    Right 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 are

    #1024636

    Hi,

    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,
    Ismael

    #1024708

    THANKS!! It works!

    #1025343

    Hi,

    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.