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.
Hi,
Is it possible to customize the output of this module? I'm trying to get rid of the link below the image in the galleries but I can't do it via css since the link is not classed.
Thanks!
regards,
CH
Comments
Comment #1
kmontyWhat link specifically are you trying to get rid of?
FYI - I'm going back through now and starting to put more of the links / output in theme functions, so eventually you will have complete control of the node_gallery output.
Comment #2
kmontyComment #3
NiHL CreditAttribution: NiHL commentedHi, thanks for the prompt reply. Let me give you an example:
From the demonstration.
The first item is
As you can see, the link is right next to the name. As the link is not classed, it is impossible to apply a css display: none to it. I would prefer not to hack the module if I can. I'm glad to hear about the theme functions. Thanks!
Comment #4
kmontyYou can already customize that output by overriding the theme function theme_gallery_image_thumbnail() from the file node_gallery.themes.inc You can just remove the link line completely!
If you are unfamiliar with how to do this there is a great page on the Drupal Handbook on how to do this: http://drupal.org/node/11811
Comment #5
broonI'm currently struggling with theming, too.
In your case, there are CSS selectors which give you the possibility to address the link, i.e.
div.image-thumbnail img + a { display: none; }
should do the job.
However, I'd prefer overriding the theming functions.