Add custom CSS to OForms contact Form?

Topics: Administration, Customizing Orchard, General, Installing Orchard, Troubleshooting
Aug 30, 2013 at 12:21 AM
How is the custom CSS styling handled when adding a OForms contact page. I already have made out the CSS look I want, but I did not see a place to add it.
Aug 30, 2013 at 12:53 AM
One way is to include that CSS from your Layout template.
Alternatively, override the applicable view from OForms by copying that file to the Views folder of your theme and include your stylesheet from there (using Style.Include).
Sep 1, 2013 at 7:00 PM
sfmskywalker my form tag has it's own alignment class and wrapping <div> tags. How are they added? The <form> tag in OForms is excluded when creating a new form.

Sep 2, 2013 at 5:13 PM
Sep 3, 2013 at 7:57 PM
The <form> tags are rendered using the Parts.OForm.Display view (in oforms/views).
You can override that view in your theme and include any attribute you want from there.