Message form height
#1
Posted 08 November 2011 - 06:08 PM
I have contactbuddy installed in a widget, above some other text. The 'message' field that displays is quite tall, and pushes the other content down more than I'd like. How do I go about changing the displayed height of the message field?
Toby
#2
Posted 09 November 2011 - 07:48 PM
Hi Tobin, :)
Thanks for posting this, and welcome to the forums!
In your ContactBuddy folder, edit the contactbuddy.php file, on line 202, change the value
rows="8"
to something like
rows="4"
to bring the message box size down. Please let me know how it goes.
Regards,
Bes
Add/Follow me on Twitter - G+ - Social Improve - The Reasoner - FB - LinkedIn - Google Search
#3
Posted 11 November 2011 - 09:30 AM
Quote
Thanks for posting this, and welcome to the forums!
In your ContactBuddy folder, edit the contactbuddy.php file, on line 202, change the value
rows="8"
to something like
rows="4"
to bring the message box size down. Please let me know how it goes.
Regards,
Bes
Thanks Bes, but I tried that, and it didn't work. I tried all sorts of values there, and nothing seemed to change. Perhaps I should mention that I'm using this in Widget mode.
I did find a solution, although probably less than ideal. I went to the contactbuddy.php, and in the same section you referenced, added this line
style="width:189px; height: 74px";
right after the class="cbfit"
Toby
Edited by Tobin Johnson, 11 November 2011 - 03:32 AM.
#4
Posted 11 November 2011 - 12:14 PM
Thanks for the reply. Hmmmm, the widget mode may be doing it, though it should still work. Do you have a url where you have this up and running as a widget?
Maybe I can take a look and see which specific code to change for your case to make the height smaller.
Regards,
Bes
Add/Follow me on Twitter - G+ - Social Improve - The Reasoner - FB - LinkedIn - Google Search
#5
Posted 11 November 2011 - 06:29 PM
this should ideally be done using CSS, without having to modify the plugin files (since these will be overwritten when you update the plugin).
Like Bes said, always add a link to your site so we can look into this, and provide specific targeted support, but theoretically, if you add the following code at the end of your themes stylesheet style.css:
li.contactbuddy-message-input .cbfit {
height: 30px;
}
it should be ok (modify height to your likings of course),Ronald
Edited by Ronald, 12 November 2011 - 12:30 AM.
Join the iThemes Builder Community on Google+.
To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. Please also read the forum guidelines.
When asking your question/posting your request on the forum, please be as concise and specific as possible. The shorter your request, the more to the point, the more specific, the easier it will be for us to try and help out.




