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

Mschudders’s picture

Hi

Thanks ! I'll look into this !

Mschudders’s picture

Fixed in the latest dev version

troky’s picture

Thanks but I don't see that commit...

Mschudders’s picture

Well, you'll need to wait until drupal packaged it. This can take up to 12 hours :/

So nothing I can do sorry.

Mschudders’s picture

My bad, I didn't press submit.

Now it is committed :-)

Mschudders’s picture

Status: Active » Closed (fixed)