Support » Fixing WordPress » How to make background image clickable

  • Resolved marcello8080

    (@marcello8080)


    Hi Guys, I hope you are fine.

    I have a problem, I have customized the template and the background, I’d like to make the background clickable.

    I tried with CSS but if use the line “background-image:url(www.url.com);” the image in the background disappear.

    Any idea?

    Thanks a lot
    Marcello

Viewing 2 replies - 1 through 2 (of 2 total)
  • try

    https://ran.ge/2009/11/11/css-trick-turning-a-background-image-into-a-clickable-link/

    Here we GO!!!!

    Done, after struggle with google for a day.

    I add two “a” tag after the “body” tag, then I define the style of the a tags, the first fixed on the left hand side, the second fixed on the right hand side. Both of them take to the same page…

    please have a look: http://www.freespingratis.net

    <body <?php body_class(); ?>>
    
    <a href="https://banners.livepartners.com/click.php?z=6387" target="_blank" style="display:block;  height:100%;  width:155px;  position:fixed;  left:0;  top:0;  z-index:0; text-indent:-5000em;"> Jump to the website</a>
    <a href="https://banners.livepartners.com/click.php?z=6387" target="_blank" style="display:block;  height:100%;  width:155px;  position:fixed;  right:0;  top:0;  z-index:0; text-indent:-5000em;"> Jump to the website</a>

    Thanks a lot!!!

    Marcello

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make background image clickable’ is closed to new replies.