[Support request] Make entire background image a link

Home Forums Support Make entire background image a link

  • This topic has 5 replies, 3 voices, and was last updated 3 months ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1326796
    Daniel Häckel

    Hi,

    is it possible to make the whole background (only on home) a link?
    No matter where you click, a redirect should take place.
    Thank you:-)

    #1326895
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I understand.

    Any chance you can link us to the site in question?

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #1327632
    Daniel Häckel

    Hey Leo,

    thanks for your help!
    the site is under construction – so it doesn’t work yet, sorry.
    I want to link to the blog-page, no matter where a visitor is clicked on the landingpage.
    Like a huge transparent button on the entire page.
    Maybe by the Z value …

    I have to link all the components on the landingpage – including the background. Is there any chance to solve this?

    THX
    Dan

    #1327655
    Leo
    Staff
    Customer Support

    I’m not sure if I’ve seen a solution like this, unfortunately.

    #1328164
    Daniel Häckel

    Hey Leo,

    something like a ghost button?

    #1328265
    David
    Staff
    Customer Support

    Hi there,

    you can use a Hook Element:
    https://docs.generatepress.com/article/hooks-element-overview/

    To add a hidden link that covers the entire view:

    <a href="URL" class="full-page-link">Hidden Link</a>
    
    <style>
    body {
    	position: relative;
    }
    
    .full-page-link,
    .full-page-link:hover {
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    	height: 100%;
    	color: transparent;
    }
    </style>

    Select the after_footer hook

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.