[Support request] Make entire background image a link

Home Forums Support [Support request] Make entire background image a link

Home Forums Support Make entire background image a link

Viewing 8 posts - 1 through 8 (of 8 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

    #1787563
    Martin

    Hi David,

    I’d like to ask you if this code can be modified so that the link appears only on the background of the page – only on the left and right side of the main content of the pages (such as on these pages on a purple-black background – https://stavimbydlim.cz/prumerna-spotreba-vody-na-osobu/)

    Thank you.
    Have a nice day.
    Martin

    #1787937
    David
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.