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.
I used the css:
#cboxPrevious, #cboxNext, #cboxCurrent{
visibility: hidden;
}
to hide the previous and next arrows on a colorbox gallery. However, I'm using colorbox in a few places on my site and I only want to hide the arrows on a view gallery, not on a node gallery.
I can't figure out the css to hide the arrows for a particular gallery.
Any ideas?
Thanks
Comments
Comment #1
undertext CreditAttribution: undertext commentedOne of the solutions is to implement hook_colorbox_settings_alter().
U can write something like this in your custom module:
This code will add 'node-gallery' class to colorbox on node pages.
Comment #2
Neslee Canil Pinto