Jump to content

Changing target of a Portfolio image

Recommended Posts

Posted

Hello, I am using Portfolio as my main page and I would like to have one of the images when clicked lead to the blog page, and not to the built in secondary page and redirect the click. Is this possible?  I've attached an example of what I am trying to achieve. 

 

Thank you. 

Screen Shot 2022-06-20 at 11.41.58 AM.png

  • Replies 5
  • Views 643
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...
Posted
7 hours ago, CatGuerreiro said:

this is the portfolio page: 

https://www.chumbo.org/projects/podcaststeste

 

Hello! I have the same query. I would to change the links of the page above - a portfolio - to pages I already created. For example, in the link 'Podcast Fault / Falha ', I would like to redirect to this page: https://www.chumbo.org/podcasts-fault

 

Thanks in advance!

Captura de Tela 2022-07-14 às 16.40.55.png

Add to Last Line in Code Injection > Footer

<script>
$(document).ready(function() {
	// Podcast Fault
	$('a.portfolio-hover-item[href="/projects/podcaststeste/fault"]').attr('href','https://google.com');
	// A guerra
	$('a.portfolio-hover-item[href="/projects/podcaststeste/agdp"]').attr('href','https://abc.com');
	// Open Voice
	$('a.portfolio-hover-item[href="/projects/podcaststeste/open-voices"]').attr('href','https://facebook.com');
});
</script>

 

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!)

  • 1 month later...

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.