Skip to:
Content
Pages
Categories
Search
Top
Bottom

i want to replacement bbpress comment editor

  • @jacklii

    Participant

    hello,every budy:
    Now i have a wordpress site, i feel it’s comment editor is not strong, can’t upload image and other files. I found the summernote can meet my requirements. Summernote is very powerful, style is also very beautiful. But it is not a plugin, the need to introduce JS / CSS file, and add the appropriate HTML to normal use. Now i have introduce the js/css files, and i want to replacement bbpress native editor, but don’t know how to do it? Can you help me? Give me some advice and help?
    In this regard, I will be very grateful!
    Best Regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @robin-w

    Moderator

    can only give you the area for html

    so two files

    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Make a copy of the two files above, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/bbpress/form-topic.php
    and
    wp-content/themes/%your-theme-name%/bbpress/bbpress/form-reply.php

    bbPress will now use this template instead of the original
    and you can amend this

    Suggest your html/php needs to replace

    <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>

    but you’ll need to work out exactly how yourself !!

    In the spirit of sharing stuff, if you work it out, please post the solution to this thread !!

    @jacklii

    Participant

    thank you very much for your help . But I follow the tutorial you introduced to do, there is no front-end changes. Do not you know why?
    And this code( <?php bbp_the_content( array( ‘context’ => ‘reply’ ) ); ?> ) I have replacement the summernote code, and nothing changed!

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