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.
Is there a way to put an image inside a tooltip? Thanks.
Is there a way to put an image inside a tooltip? Thanks.
Comments
Comment #1
ebren CreditAttribution: ebren commentedYou can create a custom field formatter template for that image field and just wrap it with
<div class="tipsy"></div>
or VERY SIMPLY:
create a tipsy field in views, with the link being
<div>
. Put that before your image field. Create a text field with the text</div>
. Put that after your image field. Be sure to uncheck Provide Default Wrapper Elements in your view format settings or your nesting will be screwed up.You can add back any necessary wrappers individually to each field.
Comment #2
ram4nd CreditAttribution: ram4nd as a volunteer commented