I can’t link to my slider!

Asked

Viewed 34 times

0

My slider is currently like this:

*<!-- Revolution Slider -->
<div id="rev_slider_4_1_wrapper" class="rev_slider_wrapper fullwidthbanner-container" data-alias="classicslider1" style="margin:0px auto;background-color:transparent;padding:0px;margin-top:0px;margin-bottom:0px;">
<!-- 5.0.7 auto mode -->
    <div id="rev_slider_4_1" class="rev_slider fullwidthabanner" style="display:none;" data-version="5.0.7">
        <ul>
<!-- Slide  -->         
<li data-index="rs-7" data-transition="fadefromtop" data-slotamount="default" data-easein="Power4.easeInOut" data-easeout="Power4.easeInOut" data-masterspeed="1000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="800" data-fsslotamount="7" data-saveperformance="off">
                <!-- Background -->
                <img src="images/BannerSiteEM001.png" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina="" />
            </li>
            <!-- Slide  -->
            <li data-index="rs-7" data-transition="fadefromtop" data-slotamount="default" data-easein="Power4.easeInOut" data-easeout="Power4.easeInOut" data-masterspeed="1000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="800" data-fsslotamount="7" data-saveperformance="off">
                <!-- Background -->
                <img src="images/slide_44.png" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina="" />
            </li>
            <!-- Slide  -->
            <li data-index="rs-7" data-transition="fadefromtop" data-slotamount="default" data-easein="Power4.easeInOut" data-easeout="Power4.easeInOut" data-masterspeed="1000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="800" data-fsslotamount="7" data-saveperformance="off">
                <!-- Background -->
                <img src="images/CapaSite002.png" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina="" />
            </li>
            <!-- Slide  -->
            <li data-index="rs-1" data-transition="fade" data-slotamount="default" data-easein="Power4.easeInOut" data-easeout="Power4.easeInOut" data-masterspeed="1000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="800" data-fsslotamount="7" data-saveperformance="off">
                <!-- Background -->
                <img src="images/slide-03.jpg" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina="" />
            </li>   
        
            <!-- Slide  -->
            <li data-index="rs-6" data-transition="fadefromtop" data-slotamount="default" data-easein="Power4.easeInOut" data-easeout="Power4.easeInOut" data-masterspeed="1000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="800" data-fsslotamount="7" data-saveperformance="off">
                <!-- Background -->
                <img src="images/slide-05.jpg" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina="" />
            </li>
        </ul>
        <div class="tp-static-layers"></div>
    </div>
</div>
<!-- Revolution Slider / End -->*

Mas quando eu tento colocar um link dessa forma: 

*<li data-index="rs-7" data-transition="fadefromtop" data-slotamount="default" data-easein="Power4.easeInOut" data-easeout="Power4.easeInOut" data-masterspeed="1000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="800" data-fsslotamount="7" data-saveperformance="off">
                <!-- Background -->
                <a href = "https://google.com"><img src="images/BannerSiteEM001.png" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina="" /></a>
            </li>*

The result is that the image loses all its formatting of position, cover, Parallax, gets all crooked, as if it had been played without any code. What’s going on? Thank you in advance!^^

  • 1

    Where’s the CSS? Where’s the JS? Cara could not understand where or how your problem happens, put as little as possible in your question so that we can simulate the problem. But it’s probably stuck in the CSS selectors, since you’re adding an extra <a> tag to your Slider

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.