Jump to content

adding links to code block images + change sizing in mobile view

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

#1. First, add this to Design > Custom CSS

a.tp-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;

For first Code Block, edit this code

<center><div id="img-hover1"></div></center>

to this

<center><div id="img-hover1"><a href="https://google.com" class="tp-link"></a></div></center>

With second Code Block, edit code similar

<center><div id="img-hover2"><a href="https://google.com" class="tp-link"></a></div></center>

#2. Add to Design > Custom CSS

/* Our Team Image */
@media screen and (max-width:767px) {
[id*="img-hover"] {
    width: 100% !important;
    height: 300px !important;
    background-size: cover !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.