- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress Cherry 3.x. How to make Parallax Slider link open in a new tab/window
July 24, 2015
WordPress Cherry 3.x. How to make Parallax Slider link open in a new tab/window
Our Support team is ready to present you a new tutorial that shows how to make Parallax Slider links open in a new tab:
-
Open parallaxSlider.js file, it is located in /wp-content/themes/themeXXXXX/js directory on your server.
-
On line 121 you should see the following code:
mainCaptionHolder.on('click', function(){ location.href = urlLinkArray[ImgIdCounter]; })
-
Edit the code so it looks like the following:
mainCaptionHolder.on('click', function(){ window.open(urlLinkArray[ImgIdCounter], '_blank'); })
-
Save changes to file when you are done.
-
Check the result on your website.
Feel free to check the detailed video tutorial below:
WordPress Cherry 3.x. How to make Parallax Slider link open in a new tab/window