Hi developpers,
I am just building a website for somebody and find that the width of the fields of XH_mailform is not nice in this particular template.
Unfortunately the form doesn't have a class name. I think, it wouldn't hurt to give it a class name (e.g. class="XH_mailform"), so that one could style it properly via the template css if necessary.
svasti
Class for XH_mailform div
Re: Class for XH_mailform div
The mailform is already enclosed in a div#cmsimple_mailform resp. div#xh_mailform in XH 1.6; isn't that sufficient?
Christoph M. Becker – Plugins for CMSimple_XH
Re: Class for XH_mailform div
Would be nice, if this were the case, but it isn't
Just put {{{XH-mailform();}}} on an page and check!
These classes appear only in the standard contact form -- they don't appear when you call the mailform like a plugin on a page. At least not in my installation.
svasti
Just put {{{XH-mailform();}}} on an page and check!
These classes appear only in the standard contact form -- they don't appear when you call the mailform like a plugin on a page. At least not in my installation.
svasti
Re: Class for XH_mailform div
Of course you're right. My apologies for not reading carefully enough.svasti wrote:These classes appear only in the standard contact form -- they don't appear when you call the mailform like a plugin on a page.
So it seems reasonable to add an appropriate class attribute to the actual mail form, say, xh_mailform (I would prefer to stick with lower case letters, because that's the current convention). As XH_mailform() was introduced for XH 1.6, I assume we can add the class without an explicit voting. Okay?
Christoph M. Becker – Plugins for CMSimple_XH
Re: Class for XH_mailform div
+1cmb wrote:add an appropriate class attribute to the actual mail form, say, xh_mailform