Site logo

[Support request] text inside the field

Home Forums Support [Support request] text inside the field

Home Forums Support text inside the field

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1908414
    Dominik

    Hi. How to put text in a text input field. I don’t want text like “username” above the input field. I want it to show up inside this field and disappear when the user starts completing.

    #1908418
    Leo
    Staff
    Customer Support

    Hi there,

    What field are you referring to here?

    The theme itself doesn’t add any field by default.

    #1908474
    Dominik

    to fields on the bbpress forum.
    example: “Reply To: text inside the field” I want it to appear inside the field. is it possible?

    #1908514
    Leo
    Staff
    Customer Support

    This is something you will need to check with bbPress’ support team.

    I’d assume they have filters for things like these.

    #1909451
    Dominik
    add_filter( 'bbp_get_the_content', 'amend_reply', 10, 3);
    
    Function amend_reply ($output, $args, $post_content) {
    if ($args['context'] == 'reply' && $post_content == '') $output=str_replace('></textarea>', 'placeholder="Reply..." ></textarea>',$output) ;
    return $output ;
    }

    This code works. I cannot post on the bbpress forum yet. I have a question .. How do I apply this code to other fields? e.g. e-mail and name. these fields appear for users who are not logged in.

    #1909468
    Leo
    Staff
    Customer Support

    I’m not sure unfortunately.

    This isn’t something the theme support can help with so you will need to check with bbPress support team.

    Thanks!

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