Jump to content

Redirect portfolio projects to another page in site

Recommended Posts

I really like the portfolio follow cursor and background options and would like to use that in my home page to link it to specific category in the shop, so i though would it be possible to redirect it so when i click on project it takes me to the category in the shop rather than a project?

 

Thanks a lot

Site: https://primrose-trombone-p7eb.squarespace.com/pagrindinis

Pass: square

Edited by DariusBo
Link to comment
  • DariusBo changed the title to Redirect portfolio projects to another page in site
  • Replies 3
  • Views 320
  • Created
  • Last Reply

Top Posters In This Topic

You mean click on each project >> redirect to custom url? This is possible.

Your site is expired. You can access this link to extend it (Free)

https://primrose-trombone-p7eb.squarespace.com/config/extendtrial

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
  • 4 weeks later...
On 12/5/2022 at 7:00 PM, DariusBo said:

I really like the portfolio follow cursor and background options and would like to use that in my home page to link it to specific category in the shop, so i though would it be possible to redirect it so when i click on project it takes me to the category in the shop rather than a project?

 

Thanks a lot

Site: https://primrose-trombone-p7eb.squarespace.com/pagrindinis

Pass: square

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
  $(document).ready(function(){
    $('ul.portfolio-hover-items-list>li:nth-child(1) a').attr('href','/shop/seating');
     $('ul.portfolio-hover-items-list>li:nth-child(2) a').attr('href','/shop/aksesuarai');
     $('ul.portfolio-hover-items-list>li:nth-child(3) a').attr('href','/shop/viestuvai');
     $('ul.portfolio-hover-items-list>li:nth-child(4) a').attr('href','/shop/santechnika');
     $('ul.portfolio-hover-items-list>li:nth-child(5) a').attr('href','/shop/tekstile');
});
</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!)

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.