Post

3 followers Follow
0
Avatar

How do I center a smart form on a wordpress page?

Scott Gee

I have added a smart form to a page on the site and I can't seem to figure out how to make it appear in the center.

Any ideas?

Answered

Official comment

Avatar

Hi Scott ... in WordPress, the theme's stylesheet will often cause the form to be left-justified. In the page editor, click the "Text" option to reveal the form code and add the line above and below shown in yellow:

center-form-wp.png

Some themes will still overwrite the in-line CSS we have provided above. You can try a few other options, such as the following (these are in order of success after the first method above):

center-form-wp-html.png

Or - 

center-form-wp-margin.png

As a last resort, you can increase the left margin which almost all themes will allow:

center-form-wp-para.png

If none of these work, contact the theme author for instructions.

Frank Hagan
Comment actions Permalink

Please to leave a comment.

3 comments

0
Avatar

In ONTRApages you should choose a block that has the form in the right position unless you are using a Custom HTML block to use ONTRAform embed code. If you are doing that you could use the same code as above.

Frank Hagan 0 votes
Comment actions Permalink