{"id":59,"date":"2019-12-12T10:05:25","date_gmt":"2019-12-12T10:05:25","guid":{"rendered":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/?p=59"},"modified":"2020-03-20T06:45:42","modified_gmt":"2020-03-20T06:45:42","slug":"contact-forms","status":"publish","type":"post","link":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/contact-forms\/","title":{"rendered":"Contact Forms"},"content":{"rendered":"\n<p><strong>Adding Contact Forms<\/strong><\/p>\n\n\n\n<p>Contact forms are not built into a Theme (for many reasons) so we recommend using a 3rd party plugin for this. The free one we like is Contact Form 7 and the premium one we like is <a href=\"http:\/\/wpexplorer.com\/gravity-forms\/\">Gravity Forms<\/a>. Both can be used to add forms anywhere on your site. <\/p>\n\n\n\n<p>In our demos we\u2019ve used <a href=\"https:\/\/wordpress.org\/plugins\/contact-form-7\/\">Contact Form 7<\/a>.<\/p>\n\n\n\n<p>Contact Forms with Columns<\/p>\n\n\n\n<p>Spices includes the powerful bootstrap grid system that you can use for pretty much anything, this includes creating Contact Forms with multiple columns.<\/p>\n\n\n\n<p><a href=\"https:\/\/getbootstrap.com\/docs\/4.4\/layout\/grid\/\"><strong>Understanding the Bootstrap Grid<\/strong><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"602\" height=\"216\" src=\"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/image-25.png\" alt=\"\" class=\"wp-image-387\" srcset=\"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/image-25.png 602w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/image-25-300x108.png 300w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/image-25-530x190.png 530w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p><strong>Example Grid HTML<\/strong><\/p>\n\n\n\n<p>Here is a basic grid example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\">\n  &lt;div class=\"row\">\n    &lt;div class=\"col-sm\">\n      One of three columns\n    &lt;\/div>\n    &lt;div class=\"col-sm\">\n      One of three columns\n    &lt;\/div>\n    &lt;div class=\"col-sm\">\n      One of three columns\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div><\/code><\/pre>\n\n\n\n<p><strong>Using the\nBootstrap Grid in Your Contact Forms<\/strong><\/p>\n\n\n\n<p>Now that you hopefully understand how the grid works here is a screenshot of how you can use the grid classes in your Contact Form. The example below is using the Contact Form 7 plugin.<\/p>\n\n\n\n<h3>Demo<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"590\" src=\"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2-1024x590.png\" alt=\"\" class=\"wp-image-627\" srcset=\"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2-1024x590.png 1024w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2-300x173.png 300w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2-768x442.png 768w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2-1536x885.png 1536w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2-330x190.png 330w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-2.png 1759w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"row\">\n   &lt;div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n      &lt;h6>Send a message&lt;\/h6>\n   &lt;\/div>\n   &lt;div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n      &lt;div class=\"form-group\">&lt;span class=\"contact-label\">Your name *&lt;\/span>&#91;text* your-name maxlength:50 class:form-control]&lt;\/div>\n   &lt;\/div>\n   &lt;div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n      &lt;div class=\"form-group\">&lt;span class=\"contact-label\">Your email Id *&lt;\/span>&#91;email* your-email maxlength:50 class:form-control]&lt;\/div>\n   &lt;\/div>\n&lt;\/div>\n&lt;div class=\"row\">\n   &lt;div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n      &lt;div class=\"form-group\">&lt;span class=\"contact-label\">Your message&lt;\/span>&#91;textarea your-message class:form-control]&lt;\/div>\n   &lt;\/div>\n&lt;\/div>\n&lt;div class=\"row\">\n   &lt;div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n      &lt;div class=\"form-group\">&#91;submit class:btn class:send-btn \"Send message\"]&lt;\/div>\n   &lt;\/div>\n&lt;\/div><\/code><\/pre>\n\n\n\n<p><strong>Result:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"784\" src=\"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-3-1024x784.png\" alt=\"\" class=\"wp-image-653\" srcset=\"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-3-1024x784.png 1024w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-3-300x230.png 300w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-3-768x588.png 768w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-3-248x190.png 248w, https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-content\/uploads\/2019\/12\/contact-3.png 1177w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding Contact Forms Contact forms are not built into a Theme (for many reasons) so we recommend using a 3rd party plugin for this. The free one we like is Contact Form 7 and the premium one we like is Gravity Forms. Both can be used to add forms anywhere on your site. In our&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/posts\/59"}],"collection":[{"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":12,"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":655,"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/posts\/59\/revisions\/655"}],"wp:attachment":[{"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themesvillage.com\/documentation\/spices-wordpress-food-blog-themes\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}