{"id":1066,"date":"2022-12-29T06:43:05","date_gmt":"2022-12-29T06:43:05","guid":{"rendered":"https:\/\/kentatheme.com\/docs\/kenta-theme\/integration\/contact-form\/"},"modified":"2022-12-29T08:35:50","modified_gmt":"2022-12-29T08:35:50","slug":"contact-form","status":"publish","type":"docs","link":"https:\/\/kentatheme.com\/docs\/kenta-theme\/integration\/contact-form\/","title":{"rendered":"Contact Form"},"content":{"rendered":"\n<p>Do you want to collect user feedback on your website? If your answer is Yes, then you have come to the right place. Kenta theme is perfectly integrated with the world&#8217;s most popular free <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/contact-form-7\/\" target=\"_blank\">Contact Form 7<\/a> plugin which is being actively\u00a0<strong>used on nearly 5 million WordPress sites<\/strong>.<\/p>\n\n\n\n<p>The Contact Form 7 plugin can be downloaded and installed for free from the WordPress dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-kenta-blocks-image kb-image kb-image-c81c1a88\"><img decoding=\"async\" src=\"https:\/\/kentatheme.com\/wp-content\/uploads\/2022\/12\/contact-form-7.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Create New Contact Form<\/h3>\n\n\n\n<p>After installing the Contact Form 7 plugin, you will need to create a form to be displayed on the front-end.<\/p>\n\n\n\n<figure class=\"wp-block-kenta-blocks-image kb-image kb-image-59aa02dd\"><img decoding=\"async\" src=\"https:\/\/kentatheme.com\/wp-content\/uploads\/2022\/12\/create-contact-form.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>Here is the sample code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"kenta-cf\">\n&lt;div class=\"kenta-inner-label\">\n&lt;label for=\"your-name\"> Your name &lt;\/label>&#91;text* your-name autocomplete:name id:your-name]\n&lt;\/div>\n\n&lt;div class=\"kenta-inner-label\">\n&lt;label for=\"your-email\"> Your email &lt;\/label>&#91;email* your-email autocomplete:email id:your-email]\n&lt;\/div>\n\n&lt;div class=\"kenta-inner-label\">\n&lt;label for=\"subject\"> Subject&lt;\/label>&#91;text* your-subject id:subject] \n&lt;\/div>\n\n&lt;div class=\"kenta-inner-label\">\n&lt;label for=\"message\"> Your message&lt;\/label>&#91;textarea your-message id:message]\n&lt;\/div>\n\n&lt;div class=\"kenta-full-width-submit\">\n&#91;submit \"Submit\"]\n&lt;\/div>\n&lt;\/div><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Show In Frontend<\/h3>\n\n\n\n<p>You can use the shortcode to display the contact form on any page. Here&#8217;s what it looks like on the front end:<\/p>\n\n\n\n<figure class=\"wp-block-kenta-blocks-image kb-image kb-image-511af00d\"><img decoding=\"async\" src=\"https:\/\/kentatheme.com\/wp-content\/uploads\/2022\/12\/contact-form-front-end-style.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>In the <a rel=\"noreferrer noopener\" href=\"https:\/\/kentatheme.com\/pricing\/\" target=\"_blank\">Pro version<\/a> we support display forms via HTML element in the header and footer. This way it can be displayed on all pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"built-in-form-css-classes\">Built-in Form CSS class<\/h3>\n\n\n\n<p>Kenta theme has some form CSS classes built in. It allows you to customize the style of your forms, and this list will change as the theme is updated.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">.kenta-inner-label<\/h4>\n\n\n\n<p>Using this class to wrap your form inputs, the label will be displayed inside the input control and hiding the label when the user clicks or edits the input control.<\/p>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-kenta-blocks-image kb-image kb-image-ed970df8\"><img decoding=\"async\" src=\"https:\/\/kentatheme.com\/wp-content\/uploads\/2022\/12\/inner-label-class.gif\" alt=\"\"\/><\/figure>\n\n\n\n<div class=\"wp-block-kenta-blocks-paragraph kb-paragraph kb-paragraph-c1227184\"><p>with .kenta-inner-label class<\/p><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-kenta-blocks-image kb-image kb-image-14b9c263\"><img decoding=\"async\" src=\"https:\/\/kentatheme.com\/wp-content\/uploads\/2022\/12\/default-label-style.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<div class=\"wp-block-kenta-blocks-paragraph kb-paragraph kb-paragraph-55aaf58e\"><p>default label style<\/p><\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">.kenta-full-width-submit<\/h4>\n\n\n\n<p>This class allows your submit button to be displayed at full width.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">.kenta-form-classic &amp; .kenta-form-modren<\/h4>\n\n\n\n<p>Kenta theme has two built-in styles of forms: classic and modern. You can configure the form style globally via <code>Customizing \u25b8 Content Settings \u25b8 Forms<\/code>.<\/p>\n\n\n\n<p>When you create a custom form, we allow you to override the default styles by using <code>.kenta-form-classic<\/code> and <code>.kenta-form-modren<\/code> class wrappers. Here is the different:<\/p>\n\n\n\n<figure class=\"wp-block-kenta-blocks-image kb-image kb-image-747ded7d\"><img decoding=\"async\" src=\"https:\/\/kentatheme.com\/wp-content\/uploads\/2022\/12\/classic-modren-form-style.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"featured_media":0,"parent":1063,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1066","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/docs\/1066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/comments?post=1066"}],"version-history":[{"count":4,"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/docs\/1066\/revisions"}],"predecessor-version":[{"id":1092,"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/docs\/1066\/revisions\/1092"}],"up":[{"embeddable":true,"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/docs\/1063"}],"prev":[{"title":"Mailchimp","link":"https:\/\/kentatheme.com\/docs\/kenta-theme\/integration\/mailchimp\/","href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/docs\/1065"}],"wp:attachment":[{"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/media?parent=1066"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kentatheme.com\/wp-json\/wp\/v2\/doc_tag?post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}