Jump to content

Box shadow on hover, and make box into a link


rivermobster

Recommended Posts

NOTE:  If you switch from text mode to Visual mode, you must reinsert the link in text mode!

You can do this by adding some CSS to your website, and some HTML to the widget itself.

Please add the following CSS to your website:

.link-overlay {
        position: relative;
}
.link-overlay-link {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
}


Now please open a SiteOrigin Editor widget and add your desired text. Then switch to Text mode and add the following HTML:

 

<a href="https://google.com.au/" class="link-overlay-link"></a>


Go over to the Widget Styles sidebar and open the Attribute settings group. Set the Widget Class to link-overlay and then save.

Link to comment
Share on other sites

  • rivermobster changed the title to Box shadow on hover, and make box into a link

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...