Jump to content

Replace the Footer Email output with an image in Contact Information Block


Recommended Posts

How would I go about doing this :

I have the email printscreened onto a picture that I would like to href or the likes to the email address rather than having it in plain text ( for those who don't see my reasons behind it, it's to prevent spambots from picking up the email )

I've tried dissecting a fair amount of files from my FTP, trying to fetch the file that allows me to do it, but it's mostly just back end redirects, and I really don't want to mess with the general email setting from where it usually fetches it. I just want the email on my FOOTER to have a picture file that looks like it would be text ( I have a picture of the address prepared and rendered ). It would be a whole lot easier to just code it.. but where from ? <_<

So please guys, is there anyone out there who can help me with this ?

I'd be happy to oblige with a solution if I find any as I imagine a lot of people want to do this. -_-

Link to comment
Share on other sites

You failed to say what version of Presta you are using and if you post a snapshot along with an explanation of your needs it would be easier to help.

I hope I understand what your trying to do from your post.

 

If your talking about changing the Email address in the footer under Store information Presta 1.6xx you would edit the blockcontactinfos.tpl file located in  

 

themes/default_bootstrap/modules/blockcontactinfos/

 

upload your image to the img/ folder in the root of your shop files then edit the .tpl file.

 

In the example below I have also added a mailto link so that the image would work the same as the posted email.

Change the bold to suit your need.

If you don't want the mailto link remove the <a hrefxxxxxx>   </a> section.

 

 

 

 

CHANGE THIS:

 

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

            {/if}

 

TO THIS:

 

{if $blockcontactinfos_email != ''}

            <li>

            <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} 

            <span><a href="mailto:[email protected]">  <img src="../img/yourimage.jpg" width="" height="" alt="" />   </a></span>

            </li>

            {/if}

  • Like 1
Link to comment
Share on other sites

  • 10 months later...

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