Rich Textarea Height

This topic contains 5 reply and 2 voices, and was last updated by Oritro Ahmed 10 years ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
April 1, 2014 at 10:56 am 17756
Oritro Ahmed I'm using rich textarea for a frontend content form. How much ever rows I set in textarea rows, ain't reflected back on the site. If I look into the source I can find a height is being set by the plugin and doesn't use the cols parameter. In case of normal textarea the cols param works flawlessly. source : <textarea class="required wp-editor-area" style="height: 100px" cols="40" name="post_content" id="post_content"></textarea> You can check the form live in action here. How do I increase the height of the rich textarea?
April 1, 2014 at 4:50 pm 17789
Oritro Ahmed Oritro Ahmed

There is a Possible fix, Through CSS. I checked the from in live on your site. You can just patch it using a little CSS Code.


#post_content_ifr {
width: 100%;
height: 138px !important;
display: block;
}

Now here, You have to change the height Property According to your need. Then Paste the CSS code in the END of your theme css. It should solve your problem.

If its still not working, Please let us know.

April 1, 2014 at 8:21 pm 17795
Avani Avani

First of all, I can’t find post_content_ifr div id anywhere in the source.

I tried the following code and it ain’t working. Any other thoughts on this?

#post_content{
        width: 100%;
        min-height: 238px!important;
        display: block;
}

If I’m to update the core files, that won’t be an issue for me as even after any update, I can do the same thing to get it back working.

April 1, 2014 at 11:26 pm 17807
Oritro Ahmed Oritro Ahmed

Well,

1st, You can’t find the Code Directly from the Source. Its generated by the Rich Text Editor. Take a Look. You can see the ID in both Developer tool and Browser Window.

2nd, I see, You applied the code to a wrong ID. It precisely have to be #post_content_ifr ID.

3rd, Even if that doesn’t work, You can update the core file, Yet that is not recommended in any case.

Please let us know if you still have a Question.

April 2, 2014 at 1:30 pm 17843
Avani Avani

Oops! My bad! Fixed it.

Thanks again!

April 3, 2014 at 12:00 am 17873
Oritro Ahmed Oritro Ahmed

You are welcome.

Viewing 5 Posts - 1 through 5 (of 5 total)