Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you have more than one bxslider on page extra CSS generated in _bxslider_views_slideshow_set_extra_css()
is overriden.
For example, I have two sliders with different settings, e.g. caption-color of first slider is set to "0,0,0,1" and second is default (80,80,80,0.75).
Generated code looks like:
<style type="text/css" media="all">
<!--/*--><![CDATA[/*><!--*/
...
.views-slideshow-bxslider .bx-wrapper .bx-caption{background:rgba(0,0,0,1)}
...
/*]]>*/-->
</style>
<style type="text/css" media="all">@import url("http://cubus.electrosoft.ri/modules/locale/locale.css?mrewgn");</style>
<style type="text/css" media="all">
<!--/*--><![CDATA[/*><!--*/
...
.views-slideshow-bxslider .bx-wrapper .bx-caption{background:rgba(80,80,80,0.75)}
...
/*]]>*/-->
</style>
... so both sliders pick later CSS - background:rgba(80,80,80,0.75)
You should put id selector in front to avoid this problem so final css should look like (for example):
#views-slideshow-bxslider-1 .bx-wrapper .bx-caption{background:rgba(0,0,0,1)}
and
#views-slideshow-bxslider-2 .bx-wrapper .bx-caption{background:rgba(80,80,80,0.75)}
This is example for caption-color only and should be applied to all selectors in _bxslider_views_slideshow_set_extra_css()
Comments
Comment #1
Mschudders CreditAttribution: Mschudders commentedHi
Thanks ! I'll look into this !
Comment #2
Mschudders CreditAttribution: Mschudders commentedFixed in the latest dev version
Comment #3
troky CreditAttribution: troky commentedThanks but I don't see that commit...
Comment #4
Mschudders CreditAttribution: Mschudders commentedWell, you'll need to wait until drupal packaged it. This can take up to 12 hours :/
So nothing I can do sorry.
Comment #5
Mschudders CreditAttribution: Mschudders commentedMy bad, I didn't press submit.
Now it is committed :-)
Comment #6
Mschudders CreditAttribution: Mschudders commented