- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to assign links to slides
January 29, 2016
This tutorial shows how to assign links to slides in Magento.
Magento. How to assign links to slides
If there are no links assigned to the slides by default, they can be applied manually after performing the following steps:
-
Access your dashboard and navigate to CMS> Static Blocks> Slider. Open the slider static block content.
-
Locate the line for the slider picture. Usually, it looks as follows:
div data-src="{{skin url='images/slider/slide1.jpg'}}"
- Add data-link=”###” to the line, right before the closing tag. Replace ### with the actual URL key of required page inside the website:
div data-src="{{skin url='images/slider/slide1.jpg'}}" data-link="dirt-bike.html"
Alternatively, you may use external link as well. In this case format of the URL should be as follows:
div data-src="{{skin url='images/slider/slide1.jpg'}}" data-link=" http://www.link_to_the_website.here"
- Save changes once you are done with all modifications:
Get back to the site’s front-end. The slide link should be successfully applied.
Feel free to check the detailed video tutorial below: