Jump to content

How to add a contact form field and remove the thematic box?


Recommended Posts

Hello,

You can remove that field from contact-form.tpl:

  • Open the /public_html/themes/your-theme/contact-form.tpl
  • Find this code group
    <select id="id_contact" class="form-control" name="id_contact">
    	<option value="0">{l s='-- Choose --'}</option>
    		{foreach from=$contacts item=contact}
    			<option value="{$contact.id_contact|intval}"{if isset($smarty.request.id_contact) && $smarty.request.id_contact == $contact.id_contact} selected="selected"{/if}>{$contact.name|escape:'html':'UTF-8'}</option>
    			{/foreach}
    </select>

     

  • and replace
    				<input type="hidden" class="form-control" name="id_contact" name="id_contact" value="2">
    

     

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...