If your ReadyTheme did not come with the Contact extension pre-installed, you can add it to your site by performing the following steps.
- Navigate to User Interface -> Theme Components -> Content Sections
- Add a new content section:
- Code:
contact_form
- Name:
Contact Us Form
- Content: Paste the content from contact_form.mvt
- Code:
- Copy the item tag
<mvt:item name="readytheme" param="contentsection( 'contact_form' )" />
.
- Navigate to User Interface -> Pages -> CTUS
- Paste the item tag for the contact form where you would like it to appear on tha page.
- Navigate to User Interface -> Pages
- Add a new page:
- Code:
CTFM
- Name:
Contact Form
- Content: Paste the content from ctfm.mvt
- Code:
- Ensure the
urls
item has been assigned to the page. - If you would like to alter either the store email, or the visitor confirmation email, there are sections for that with comments.
- Upload contact.css to
mm5/themes/%STORE_ID%/*THEME_NAME*/extensions/contact/
. - Navigate to User Interface -> CSS Resources
- Add a new CSS resource:
- Code:
x-contact
- Type: Local File
- File Path:
themes/%STORE_ID%/*THEME_NAME*/extensions/contact/contact.css
- Global: false
- Active: true
- Code:
- Click
Pages
and assign to theCTUS
page. - Click
Resource Groups
and assign to thecss_list
group. - If you are using the developer build, the
scss
file has been included.- Create a new build subdirectory as
build/extensions/contact/
- Add _contact.scss to the directory.
- Update your
build/extensions/extensions.scss
file to include@import "contact/contact";
- Create a new build subdirectory as
- Upload contact.js to
mm5/themes/%STORE_ID%/*THEME_NAME*/extensions/contact/
. - Navigate to User Interface -> JavaScript Resources
- Add a new JavaScript resource:
- Code:
contact
- Type: Local File
- File Path:
themes/%STORE_ID%/*THEME_NAME*/extensions/contact/contact.js
- Global: false
- Active: true
- Code:
- Click
Pages
and assign to theCTUS
page. - Click
Resource Groups
and assign to thefooter_js
group.