Jump to content

Removing links on blog images

Recommended Posts

Add to Home > Design > Custom CSS

/* disable image post click */
article.blog-basic-grid--container>div:first-child {
    pointer-events: none;
}

 

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
  • 2 months later...
On 9/3/2020 at 5:04 AM, tuanphan said:

Add to Home > Design > Custom CSS


/* disable image post click */
article.blog-basic-grid--container>div:first-child {
    pointer-events: none;
}

 

 

Hi @tuanphan I am having the same issue. Tried this CSS code and it doesn't seem to work. Any suggestions? www.roundhilldesign.com/press 

Link to comment
  • 2 weeks later...
On 11/24/2020 at 12:46 AM, HMC said:

 

Hi @tuanphan I am having the same issue. Tried this CSS code and it doesn't seem to work. Any suggestions? www.roundhilldesign.com/press 

Add to Home > Design > Custom CSS

section.blog-image-wrapper {
    pointer-events: none;
}

 

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
  • 2 months later...
On 2/19/2021 at 5:48 PM, PHIG said:

Hi @tuanphan

I am a complete squarespace novice. I have a website and just want to make one or two images not clickable. At the moment they open a new page which i don't want it to. How do I remove this function from an image? 

If you share link to page where you have problem. We can check easier.

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
  • 1 year later...
On 11/25/2022 at 1:48 AM, wattsgraphics said:

@tuanphan Hi I would like to block the link on all blog images. I have tried using the code you provided above however, I can’t get it to work. I am using the Universal Filter plug-in. Your help would be great!

https://turbot-kangaroo-4ghm.squarespace.com/gallery

Add this to Design > Custom CSS

/* Gallery page disable image click */
body#collection-636e251896d49f2bbe60f43b article {
    pointer-events: none;
}

 

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
On 12/1/2022 at 12:44 AM, wattsgraphics said:

@tuanphan thanks for checking it out, although I still can't get it to work...

I have tried adding important!; to the end but this has not made a difference.

 

Screenshot 2022-11-30 at 17.43.56.png

You placed code in wrong position, it made code invalid. Place code in 2 } other symbols will made code doesn't work properly.

Move code under Line 366.

 

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
  • 2 weeks later...
  • 2 months later...

Hi, just wondering whether anyone can help (perhaps @tuanphan as you seem so knowledgeable here!).

I'm trying to follow the above but it's not working.

I installed Universal Filter on a blog page and have changed each blog post to a different source url, and that works when you click on the title or the 'read more' link however I want to disable the image hyperlink/clickthrough but everything I've tried doesn't work.

Page is: https://www.urbanhealthcouncil.com/reports

Any suggestions?

Thank you

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.