Tooltip to display image instead of text?

Hi there, how/where can I add the following script to PRO so that I can show an image on a tooltip?
JS:

     $(function() {
    $( document ).tooltip({
      items: "a",
      content: function() {
           var element = $( this );
           if (element.attr('id') === 'bigpic') {
               return "<img class='map' src='full-path-to-image' />";
           }
        }
    });
  });

HTML:
<a id='bigpic' href='#' title='' >image of something here.</a>

Hi,

You can add it in PRO > Theme Options > JS

Thanks

Great!
Can you make the type a little darker / easier 2c?

Hi again,

Did you mean the left sidebar in the Theme Options? (see screenshot)

If yes then you can change it’s UI theme via Options > Preferences > UI THEME and select Dark (see screenshots)

After changing the UI Theme to Dark you’ll see the side bar options like this:

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.