• Resolved zona3punto0

    (@zona3punto0)


    I installed the plugin and it is working perfectly.
    My question: is it possible to link the background image so that if anybody clicks it, it executes an action: for example, request for email information?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author SeedProd

    (@seedprod)

    Add this code to the header script under the advanced tab and change out the destination url

    jQuery( “html,body” ).click(function() {
    location.href = ‘http://google.com’;
    });

    • This reply was modified 9 years, 2 months ago by SeedProd.
    • This reply was modified 9 years, 2 months ago by SeedProd.

    Hi,

    I too am trying top add a url link from my total background image.

    I have added the code to the ‘header script’ in ‘advanced’, but it just shows at the top of the image on the home page.

    Any ideas what I’m doing wrong?

    Thanks in anticipation.

    http://solutionsestateagents.co.uk

    Richard

    Plugin Author SeedProd

    (@seedprod)

    You have to surround that code with script tags. That should work!

    • This reply was modified 9 years, 1 month ago by SeedProd.

    Hi, thanks for your prompt response.

    I have added the following;

    <script>
    jQuery( “html,body” ).click(function() {
    location.href = ‘http://www.execulets.co.uk’;
    });
    </script>

    The code has now disappeared from the home page, but the link isn’t working. Any ideas?

    Thanks again

    Richard

    Plugin Author SeedProd

    (@seedprod)

    looks like your single and double quote are not encoded properly. Copy and use this code: https://gist.github.com/seedprod/2e695324f61423d60a201dda6cb09b29

    Hi SeedProd,

    That’s great all working now.

    I think what was also confusing me, was even though it was a link, the cursor wasn’t changing to a hand and therefore didn’t look like a live link page.

    Thank you for your prompt responses, much appreciated.

    Richard

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Link to background image’ is closed to new replies.