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

undertext’s picture

One of the solutions is to implement hook_colorbox_settings_alter().

U can write something like this in your custom module:

function custom_module_colorbox_settings_alter(&$settings, &$style) {
  $node = menu_get_object();

  if ($node) {
    $settings['className'] = 'node-gallery';
  }
}

This code will add 'node-gallery' class to colorbox on node pages.

Neslee Canil Pinto’s picture

Status: Active » Closed (won't fix)