regton Posted March 6, 2017 Share Posted March 6, 2017 Hello everyone. I am using the Thema and SLIDER Classic of Prestashop 1.7.0.5. I insert the image and the link (SLIDER) in the backend, saved. The image appears on the front end, but the link does not work. Can anyone help? Link to comment Share on other sites More sharing options...
HugeB Posted March 6, 2017 Share Posted March 6, 2017 (edited) Hi, I noticed same problem. In code is missing element "<a href="#"></a>". For sure it can be fixed in code module, but if you don't know how to start, i sugguest you to create simple button inside slider description. Or you can try to create full width link in description field (you must know little HTML & CSS for that job). I hope that helps you. Regards! Edited March 6, 2017 by HugeB (see edit history) Link to comment Share on other sites More sharing options...
regton Posted March 6, 2017 Author Share Posted March 6, 2017 Hi, I noticed same problem. In code is missing element "<a href="#"></a>". For sure it can be fixed in code module, but if you don't know how to start, i sugguest you to create simple button inside slider description. Or you can try to create full width link in description field (you must know little HTML & CSS for that job). I hope that helps you. Regards! Thanks for your return. Do you know the location of the file or some tutorial solving the problem? Link to comment Share on other sites More sharing options...
HugeB Posted March 6, 2017 Share Posted March 6, 2017 (edited) Yes, file is located here: YOUR_MAIN_FILES / themes / classic / modules / ps_imageslider / views / templates / hook / slider.tpl I did quick look, and you need to do something inside "<li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}">". I will check full solution in 7 days (i need full solution for me too) and then reply with tutorial here. Kind regards! Edited March 6, 2017 by HugeB (see edit history) Link to comment Share on other sites More sharing options...
regton Posted March 6, 2017 Author Share Posted March 6, 2017 Yes, file is located here: YOUR_MAIN_FILES / themes / classic / modules / ps_imageslider / views / templates / hook / slider.tpl I did quick look, and you need to do something inside "<li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}">". I will check full solution in 7 days (i need full solution for me too) and then reply with tutorial here. Kind regards! Hi HugeB, After much searching ...... I must have found a solution! I tested it here and it worked. Insert the lines below in bold! {if $homeslider.slides} <div id="carousel" data-ride="carousel" class="carousel slide hidden-sm-down" data-interval="{$homeslider.speed}" data-wrap="{(string)$homeslider.wrap}" data-pause="{$homeslider.pause}"> <ul class="carousel-inner" role="listbox"> {foreach from=$homeslider.slides item=slide name='homeslider'} <li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}"> <figure> <a href="{$slide.url}"> <img src="{$slide.image_url}" alt="{$slide.legend|escape}"> {if $slide.title || $slide.description} <figcaption class="caption"> <h2 class="display-1 text-uppercase">{$slide.title}</h2> <div class="caption-description">{$slide.description nofilter}</div> </figcaption> {/if} </a> </figure> </li> {/foreach} </ul> Link to comment Share on other sites More sharing options...
Alejandro AA Posted March 31, 2017 Share Posted March 31, 2017 Hi HugeB, After much searching ...... I must have found a solution! I tested it here and it worked. Insert the lines below in bold! {if $homeslider.slides} <div id="carousel" data-ride="carousel" class="carousel slide hidden-sm-down" data-interval="{$homeslider.speed}" data-wrap="{(string)$homeslider.wrap}" data-pause="{$homeslider.pause}"> <ul class="carousel-inner" role="listbox"> {foreach from=$homeslider.slides item=slide name='homeslider'} <li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}"> <figure> <a href="{$slide.url}"> <img src="{$slide.image_url}" alt="{$slide.legend|escape}"> {if $slide.title || $slide.description} <figcaption class="caption"> <h2 class="display-1 text-uppercase">{$slide.title}</h2> <div class="caption-description">{$slide.description nofilter}</div> </figcaption> {/if} </a> </figure> </li> {/foreach} </ul> Did not work 4 me...can u help me? Did not work for me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now