Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to increase to topic writing form size(height)

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

  • Robin W
    Moderator

    @robin-w


    purityboy83
    Participant

    @purityboy83

    hi

    installed to bbp style pack

    Where is “text area” form resizing feature?
    I looked up the [topic/reply form] menu, but it doesn’t seem to change the form size.

    Best Regards,
    Hyunho


    Robin W
    Moderator

    @robin-w

    sorry, I had misunderstood your question – this code will do that :

    add_filter ('bbp_before_get_the_content_parse_args' , 'rew_rows') ;
    
    function rew_rows ($args) {
    	$args['textarea_rows'] = 20 ;
    return $args ;
    }

    and adjust the 20 to what you want

    Put this 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


    purityboy83
    Participant

    @purityboy83

    Hi

    Thank you for support

    code insert follow your’s guide
    but does not change….
    cache(opcache ,wp cache etc..) purge and purge all browser connection info
    and reconnect , recheck but text area(write area) height size is same

    my sub theme function code is

    ////////
    add_filter (‘bbp_get_title_max_length’,’change_title’) ;

    Function change_title ($default) {
    $default=120 ;
    Return $default ;
    }

    add_filter (‘bbp_before_get_the_content_parse_args’ , ‘rew_rows’) ;

    function rew_rows ($args) {
    $args[‘textarea_rows’] = 20 ;
    return $args ;
    }

    /////////////

    change_title <== is Has been applied, subject size increase to 120
    but rew_rows function does not apply

    current my bbq topic form image
    https://t1.daumcdn.net/cfile/tistory/99B813465F7315C530

    Thanks
    Best Regards,
    Hyunho


    Robin W
    Moderator

    @robin-w

    ok, it works in my test site, so I cannot explain why it is not working for you


    purityboy83
    Participant

    @purityboy83

    hi Robin

    Thanks for help

    I wait for your response
    Please help me

    Best Regards,
    Hyunho


    Robin W
    Moderator

    @robin-w

    it works in my test site, so I cannot explain why it is not working for you – there is nothing further I can do


    purityboy83
    Participant

    @purityboy83

    Hi

    While searching on Google, I found the link below.
    https://wordpress.org/support/topic/change-the-number-of-rows-in-a-textarea/

    I applied it like the content of the link, and there were changes to my site.

    add to css style
    form textarea {
    min-height: 200px;
    resize: vertical;
    }

    change to my site’s textarea

    # before
    https://t1.daumcdn.net/cfile/tistory/99B813465F7315C530

    # after(size change)
    https://t1.daumcdn.net/cfile/tistory/996F14375F77642501

    thanks

    Best Regards,
    Hyunho


    Robin W
    Moderator

    @robin-w

    great -glad you are fixed

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