Jump to content

No Link Slider Classic 1.7.0.5?


regton

Recommended Posts

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

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 by HugeB (see edit history)
Link to comment
Share on other sites

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

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 by HugeB (see edit history)
Link to comment
Share on other sites

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

  • 4 weeks later...

 

 
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...