Jump to content

Block Contact Infos module - link to Contact us page instead of plain email


igkostadinov

Recommended Posts

Hello! Accoring to the SEO requirements there should be no plain email address on the page because of potential SPAM.

However the Block Contact Info module provides such plain email in the Footer of my website. I made a lot of searches, tried tens of solution but was not able to get it work. 

 

Is it possible to show a link to the Contact Us page instead of the email?

 

Thank you,

Ivan

Link to comment
Share on other sites

Hello

 

I suppose the easiest way is to change the contactinfos.tpl file

 

Before:

{if $blockcontactinfos_email != ''}
            <li>
            <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} 
            <span>{mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</span>
            </li>
 
After:
{if $blockcontactinfos_email != ''}
            <li>
            <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} 
            <span><a href="http://google.com">Contact Us</a></span>
            </li>
 
I have just tried it and it works for me but it could be problematic if you have more than one language. The link, of course, takes you to google, just change it to whatever you require
 
Paul
  • Like 1
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...