Jump to content

portfolio/sub-page redirect the link

Recommended Posts

Trying to find code for this situation. I see there's a way to disable portfolio links and hover, but I want to just change the link to redirect it to a different page under a different portfolio and have it still show up in the list of portfolio subpages.

Example:

Portfolio One has a project that is exactly the same as Portfolio Two. Can I have /portfolio-one/project still show up on the Portfolio One page, but when clicking the link goes to www.website.com/porfolio-two/project ?

www.website.com/portfolio-one/project
www.website.com/porfolio-two/project

Link to comment
  • Replies 3
  • Views 507
  • Created
  • Last Reply

Top Posters In This Topic

Edit Project One >> Add a Code Block >> paste this code

<script>
	document.addEventListener('DOMContentLoaded', function() {
      if ( window.location == window.parent.location ) {
          var script = document.createElement('script');
          script.type = 'text/javascript';
          script.src = 'https://code.beaverhero.com/1647170255659.js';    

          document.getElementsByTagName('head')[0].appendChild(script);
      } else {
          console.log('iframe');
      }
  });
</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
20 hours ago, tuanphan said:

Edit Project One >> Add a Code Block >> paste this code

<script>
	document.addEventListener('DOMContentLoaded', function() {
      if ( window.location == window.parent.location ) {
          var script = document.createElement('script');
          script.type = 'text/javascript';
          script.src = 'https://code.beaverhero.com/1647170255659.js';    

          document.getElementsByTagName('head')[0].appendChild(script);
      } else {
          console.log('iframe');
      }
  });
</script>

 

I am also trying to do something similar, although this code didn't work for me. Is there a way to redirect portfolio grid projects to another page, either an external page or another page on my site? My actual portfolio pages are locked behind members areas but here is a sample portfolio that I am trying to have link to another page (in my case, a video page) upon clicking on a project: https://www.sprucegoose.gg/test-portfolio

Link to comment
22 hours ago, SpruceGooseTV said:

I am also trying to do something similar, although this code didn't work for me. Is there a way to redirect portfolio grid projects to another page, either an external page or another page on my site? My actual portfolio pages are locked behind members areas but here is a sample portfolio that I am trying to have link to another page (in my case, a video page) upon clicking on a project: https://www.sprucegoose.gg/test-portfolio

Can you add & keep the code? I can check easier

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.