Jump to content

link on the background image (body)


Recommended Posts

Hello,

 

I ask your aid because i encounters a difficulty

 

In my shop in local, I put a background image in the body {

 

The aim is to highlight a particular product, and to link to the product that create a dynamic home page

 

But I can not create a hyperlink

 

I tried everything in css and html but nothing works

 

I tried to put a code in the tpl file header as:

 

<div id or class="bg">

<a href="" target=""> </ a>

</ div>

 

through the css for the image but the image not displayed

 

then I do like this:

 

<div id or class="bg">

<a href="" target=""> <img src="" alt="" /> </ a>

</ div>

 

The image is put on top of the logo prestashop and distorts the site

 

z-index, the absolute positions etc. does not work

 

So my question is how to put a hyperlink on a background image in prestashop? what to put in the header.tpl file

 

thank you

Link to comment
Share on other sites

As far as I know, you can't put a link on a CSS background. I'm not sure exactly what you are trying to do, but I think you would be better off using <a href="<link>"><img src="<filename>"></a> and then using CSS to absolutely position the image wherever you want it.

Link to comment
Share on other sites

Infact I try to render the clickable background image of the site but I can not, I do not know why that does not run on prestashop

 

If I make your method, site is found at the bottom of the background like this

 

 

thank you for your help

post-199819-0-51902000-1312117246_thumb.jpg

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