• Resolved painlessseo

    (@painlessseo)


    Hi my awesome plug author,

    I would like to know how to enable the Gutenberg editor for forums/topics/replies.

    I actually came from your other comment here https://bbpress.org/forums/topic/gutenberg-compatibility/#post-235327

    I installed the plugin and added the php code (as seen below) to functions.php using Code Snippets, but I still couldn’t see the Gutenberg editor.

    add_filter ('bbp_register_forum_post_type', 'rew_gutenberg_editor') ;
    add_filter ('bbp_register_topic_post_type', 'rew_gutenberg_editor') ;
    add_filter ('bbp_register_reply_post_type', 'rew_gutenberg_editor') ;

    function rew_gutenberg_editor ($settings) {
    $settings['show_in_rest'] = true ;
    return $settings ;
    }

    Your help will be greatly appreciated!

    Earl

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Robin W

    (@robin-w)

    This did work for a short while, but no longer.

    This actual forum (the one I am typing this reply in now!!) uses bbpress, gutenberg 17.9 (current version is 20.x) and the ‘blocks everywhere’ plugin, and the wordpress-org theme but I have been unable to get it to work on my test site. They are using WordPress 16.8 (a test version) and that may have an effect.

    The blocks everywhere author says that it only works with a limited set of the gutenberg plugin.

    So I did get it working with this combination :

    Plugins:

    bbpress latest version

    Blocks everywhere – latest version

    Gutenberg version 16.7

    to get this go to Gutenberg (advanced view) – WordPress plugin | WordPress.org and at the bottom undere ‘previous versions’ select 16.7.0 and download. Then use the add new plugin>upload plugin to add the zipped file you downloaded.

    Theme:

    I think a non block theme is needed. It works with twentytwenty (non block theme), but not twentytwentyfive (block theme)

    see https://www.codeable.io/blog/wordpress-full-site-editing/ and look at the section ‘block themes’ for an explanation.

    It did not work with any of the FSE themes I tried. This is a conflict between the earlier version of Gutenberg and FSE.

    If you are not using bbp-style-pack, bbpress will not work with a block/FSE theme, so if you are not using stye pack and bbpress is working, then you are not using a block/FSE theme, and this solution may work.

    If you are using bbp-style-pack then if you are using a block/FSE theme, you will have a ‘theme support’ tab in dashboard>settings>bbp style pack as the first tab, and in that case I think you cannot have the Guttenberg editor – if you succeed in making this work, please post below with what theme you are using.

    ADDITIONALLY

    you need to be able to change wp-config – see Blocks Everywhere – WordPress plugin | WordPress.org Occitan page for instructions

    Hope you can get it working as well.

    • This reply was modified 2 months, 3 weeks ago by Robin W.
    • This reply was modified 2 months, 3 weeks ago by Robin W.
    Thread Starter painlessseo

    (@painlessseo)

    Thank you so much @robin-w. Your answer is gold.

    I know this might be off the topic (because we are at the support thread of your plugin bbp style pack) but this is what works for me:

    Theme: GeneratePress (I believe any version should work)
    Plugins: Gutenberg 16.7 and Blocks Everywhere 1.21.0
    Setting: Add define( ‘BLOCKS_EVERYWHERE_BBPRESS’, true ); to wp-config.php

    It seems that your plugin bbp style pack doesn’t need to be activated to make this work, but again I am just writing down what works for me and other users might still need your plugin to make it work.

    Again, THANK YOU!
    Earl

    Plugin Author Robin W

    (@robin-w)

    I also do support for bbpress, so that is a really helpful answer – thanks for posting.

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