• Hi, Nicolas.

    I was able to successfully override my

    image_module_tmpl.php

    file to remove the tooltip titles associated with image figures. (I didn’t want the tooltip to appear when a user hovers over an image.)

    Instead of overriding the entire template, are there any filters/actions I can use to remove the titles?

    I feel like overriding the entire template file to change a line of code is/was overkill, and I fear that it may cause incompatibility issues in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author presscustomizr

    (@nikeo)

    Hello,
    There’s actually a way with the module options. When editing the module, in “Image main settings” you need to check the option “Set the text displayed when the mouse is held over”. Just don’t enter anything in the field to prevent any tooltip to be displayed when the mouse is held on the image.

    Thread Starter Ian Sackofwits

    (@plantprogrammer)

    Thanks for answering!

    That works, but since I have a lot of images, it’s going to take me a while to go through and implement the changes.

    But still, thanks for the answer. I’ll set this to resolved!

    Thread Starter Ian Sackofwits

    (@plantprogrammer)

    Hmm…

    I did find this:

    'use_custom_title_attr' => array(
                        'input_type'  => 'nimblecheck',
                        'title'       => __('Set the text displayed when the mouse is held over', 'nimble-builder'),
                        'default'     => false,
                        'title_width' => 'width-80',
                        'input_width' => 'width-20',
                        'notice_after' => __('If not specified, Nimble will use by order of priority the caption, the description, and the image title. Those properties can be edited for each image in the media library.', 'nimble-builder')
                    )
    

    and it does work to automatically set the title to blank if I change the ‘default’ value to true, so I don’t have to manually set the title with each image, but I know that this modification will be overridden in the next release.

    I’ll think about this some more.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Alternative Way to Remove Image (Figure) Tooltip Titles’ is closed to new replies.