Jump to content

Homepage Images clickable

Recommended Posts

  • Replies 4
  • Views 389
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

1 hour ago, SeanCrafted said:

Site URL: https://www.ptmy-morpeth.co.uk/

Hi,

I was wondering if someone can advise how I can make the whole image clickable on my homepage and not just the textbox?

There are 3 images I am wanting to do the same for.

I've looked and can't find anywhere to add the link?

Thanks

Try adding to Home > Design > Custom Css

/*1st section*/
section[data-section-id="61dda8e9afd08334af9f9a94"] {
	a {
		&:after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: transparent;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
	.content-wrapper {
		* {
			position: static;
		}
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		position: absolute !important;
		align-items: center;
	}
}

/*2nd section*/
section[data-section-id="61dda8876d090a490c87f020"] {
	a {
		&:after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: transparent;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
	.content-wrapper {
		* {
			position: static;
		}
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		position: absolute !important;
		align-items: center;
	}
}

/*3rd section*/
section[data-section-id="61dda984e4dcf868ea78e99b"] {
	a {
		&:after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: transparent;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
	.content-wrapper {
		* {
			position: static;
		}
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		position: absolute !important;
		align-items: center;
	}
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 2/11/2022 at 9:55 PM, SeanCrafted said:

That's fantastic and works just how I wanted thank you.

Do you know how I can also make the gift voucher image a little smaller which is at the bottom of every page? I've tried spacers etc but it's not working and moves image all over the place?

Thanks for your help

Add to Design > Custom CSS

/* Footer image */
div#block-yui_3_17_2_1_1643899665179_6702 {
    width: 30%;
    margin: 0 auto;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 2/11/2022 at 2:33 PM, bangank36 said:

Try adding to Home > Design > Custom Css

/*1st section*/
section[data-section-id="61dda8e9afd08334af9f9a94"] {
	a {
		&:after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: transparent;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
	.content-wrapper {
		* {
			position: static;
		}
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		position: absolute !important;
		align-items: center;
	}
}

/*2nd section*/
section[data-section-id="61dda8876d090a490c87f020"] {
	a {
		&:after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: transparent;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
	.content-wrapper {
		* {
			position: static;
		}
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		position: absolute !important;
		align-items: center;
	}
}

/*3rd section*/
section[data-section-id="61dda984e4dcf868ea78e99b"] {
	a {
		&:after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: transparent;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
	.content-wrapper {
		* {
			position: static;
		}
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		position: absolute !important;
		align-items: center;
	}
}

Let me know how it works on your site

 

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.