Jump to content

How to integrate an external 'Contact Us' form, for which I have the HTML, CSS, and JS, into a CMS page


willump

Recommended Posts

Hi everyone, I have a form from an external platform (Zoho Forms) that I’ve already integrated as an iframe into a CMS page. However, this doesn’t work well for Google’s Enhanced Conversions, since the form is hosted on a Zoho domain. I therefore need to integrate the form directly into my website’s CMS page using HTML, CSS, and JS, and I’d like to know how to do that. Thanks a lot!

 

ps: Of course, I already have the HTML, CSS, and JS code, but I don’t know how to proceed.

Link to comment
Share on other sites

The simplest method is to put the HTML/CSS/JS int he themes/classic/templates/contact.tpl (OR Check the same according to your theme) to display on the contact us page.

 

image.png.775769adec8b6103d89b22bd62a63f2e.png

Place the content on the highlight places. 

If using the inline CSS/JS tag then put them inside the {literal} {/literal} tags

 

 

Link to comment
Share on other sites

49 minutes ago, Knowband Plugins said:

The simplest method is to put the HTML/CSS/JS int he themes/classic/templates/contact.tpl (OR Check the same according to your theme) to display on the contact us page.

 

image.png.775769adec8b6103d89b22bd62a63f2e.png

Place the content on the highlight places. 

If using the inline CSS/JS tag then put them inside the {literal} {/literal} tags

 

 

Sorry, but in this way the form will appear on all CMS pages?

Link to comment
Share on other sites

This will display on the contact us page, not the CMS page. 

You add the same on the CMS, you need to do either from the module OR changes in the themes\classic\templates\cms/page.tpl

 

Change

{block name='cms_content'}
      {$cms.content nofilter}
    {/block}

to

 

{block name='cms_content'}
      {if $cms.id == "1"}
        //Your Form Content
      {else}
        {$cms.content nofilter}
      {/if}
      
    {/block}

Update $cms.id == "1" to your CMS page ID. 

 

image.png.f34f27820cc3e42483d07e9c369af642.png

Edited by Knowband Plugins (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...