Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Custom URL Slug for Portfolio Items


JamesRoeser

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Hi. If you use a Business Plan or higher, we can do this uiwth script code. Which plan do you use? Which project do you want to change?

Link to post
  • 0
On 1/20/2021 at 6:33 PM, JamesRoeser said:

Site URL: https://plainspaces.com/artists

Does anyone know what coding can be used to change the clickthrough URL when you hover over and select an item from a portfolio? I want it to go to an external link, such as instagram.


THANK YOU

@JamesRoeser I see on your website that you've fixed it! Would you please share the information on how this is done?

Link to post
  • 0
On 2/3/2021 at 6:35 PM, ischa.vieten said:

@tuanphan Could you help us out with the script to change the clickthrough URL's. I want the portfolio effect, but then link each item to a custom page and url instead of a portfolio page with fixed url. Many thanks in advance!

 

On 2/3/2021 at 6:35 PM, ischa.vieten said:

@tuanphan Could you help us out with the script to change the clickthrough URL's. I want the portfolio effect, but then link each item to a custom page and url instead of a portfolio page with fixed url. Many thanks in advance!

Can you share site url?

They used this code

<script>
(function(){
	window.addEventListener('load', function() {
	var link = document.querySelector('a[href="/plainspaces/danielhex"]');
     link.target="_blank"; link.rel="noopener noreferrer"; link.href = 'https://www.instagram.com/danielhex/';
})
  
  	window.addEventListener('load', function() {
	var link = document.querySelector('a[href="/plainspaces/trentmadison"]');
     link.target="_blank"; link.rel="noopener noreferrer"; link.href = 'https://www.instagram.com/trentxmadison/';
})
  
  	window.addEventListener('load', function() {
	var link = document.querySelector('a[href="/plainspaces/obedpadilla"]');
     link.target="_blank"; link.rel="noopener noreferrer"; link.href = 'https://www.instagram.com/obedpadilla_/';
})
  
    	window.addEventListener('load', function() {
	var link = document.querySelector('a[href="/plainspaces/jerm"]');
     link.target="_blank"; link.rel="noopener noreferrer"; link.href = 'https://www.instagram.com/jermtown/';
})
  
    	window.addEventListener('load', function() {
	var link = document.querySelector('a[href="/plainspaces/loudy-luna"]');
     link.target="_blank"; link.rel="noopener noreferrer"; link.href = 'https://www.instagram.com/loudyluna/';
})
  
  
})()

</script>

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...