Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topic Text doesn’t appear above textarea


  • sasasasaaa
    Participant

    @sasasasaaa

    Hello,
    if I create a topic or reply to a topic I have to fill out the box “Topic text”. In my form is no description above the texarea which explains what to fill out here. “Topic text” is missing.

    I use a German translation .po. Is might the string not added? Can you give me the name of the englisch “topic text”, so I can check if it works?

    I have looked add the templates/default/bbpress/form-topic.php but couldn’t find the string there.

    Thanks a lot

Viewing 6 replies - 1 through 6 (of 6 total)

  • sasasasaaa
    Participant

    @sasasasaaa

    I use wordpress 5.7.1 and bbpress 2.6.9


    Robin W
    Moderator

    @robin-w

    ok, I’m not sure what you mean – can you post a picture of the area


    sasasasaaa
    Participant

    @sasasasaaa

    Here is the image https://ibb.co/zGX9KWs.
    Above the text area is no text which describes what to enter in the textarea field (like the other form fields).
    Thanks


    Robin W
    Moderator

    @robin-w

    ok so 2 things you can do here

    1. add a label

    add_action ('bbp_theme_before_topic_form_content' , 'rew_content_title') ;
    
    function rew_content_title () {
    echo '<label for="bbp_topic_content">Topic Content</label><br />' ;
    }

    Just change ‘Topic Content’ to whatever you wish

    2. add back the editor

    add_action( 'wp_footer', 'rew_supports_js' );
    
    function rew_supports_js() {
    	echo '<script>document.body.classList.remove("no-js");</script>';
    }

    Put these in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

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

    or use

    Code Snippets


    sasasasaaa
    Participant

    @sasasasaaa

    Hi, worked like a charm. Thanks a lot!!!


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed 🙂

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