Hide Caption for a particular Gallery
-
Hi Philipp
Need your help again. Is there a way to hide (switch off) the Caption, NavButtons and Slide Counting for a particular Gallery? I tried to use your plugin in a sidebar widget but would like to only show the Images.
If not possible for a particular gallery: Any chance to switch it off for Sidebar Widgets?
Thank you in advance for your appreciated assistance.
Brgds
IvoThe page I need help with: [log in to see the link]
-
Hi @ivobirrer,
currently, there’s no User Interface to edit Slick’s options for galleries in widgets, although this may change in future versions of WordPress and this plugin.For now, the easiest way would be to create a new post, add a gallery, edit all options to your liking, switch to the Quick Text mode of the editor (“Text”) and copy the gallery shortcode. Then paste it in a “Custom HTML” widget.
(The shortcode attribute your are probably looking for is
sl_arrows="false"
.)Edit: I noticed you are mentioning “slide counting”, probably referring to this thread: Image / Images instead of Dots, Arrows bottom right.
Basically, you need to exclude sliders in widgets from the jQuery object in the example I pasted in the thread. I hope to provide a solution later today, also regarding your whish to hide captions.Hi Philipp
That would be great. I also have no idea on how to exclude the slider in widgets from the jQuery.
Many thanks in advance. Again a donation is on its way to you.
Brgs
IvoHi @ivobirrer,
sorry, I was not able to get back to you earlier.I thought a bit on your request, played around with the JS snippet from the linked thread but wasn’t able to solve this with reasonable efforts.
So the quick’n’ dirty way is to add this to your
slick-slider-custom.css
:.widget-area .slide__caption, .widget-area .slick-slider-slide-count { display: none; }
This assumes that
.widget-area
is your sidebar’s class.I hope, this works for you.
Thanks again for your donation!Hi Philipp
This did the trick.
Many thanks.
Brgds
IvoHi @ivobirrer,
Heads up: The filterslick_slider_show_caption
has been deprecated in favor of the new option “Show caption” in v0.5.Hi Philipp
Super cool. Runs like a charm.
Thank you for developing this awesome plugin!
Brgds
Ivo
- The topic ‘Hide Caption for a particular Gallery’ is closed to new replies.