We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19943
    • 14 Posts
    Is it possible to add a style or some other way of turning off tooltips? I want to because they’re blocking the view of menu items.
      • 7231
      • 4,205 Posts
      Which tooltips are you talking about? Tooltips are usually generated by javascript.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        If a link has a title, the browser will put up a tooltip. Remove the titles from the links.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 19943
          • 14 Posts
          Thanks, Susan!

          You nailed it. I must have had a brain freeze.
            • 3749
            • 24,544 Posts
            I think you could also change the tooltip delay time so you’d still have the tooltips, but they wouldn’t block anything until a fairly long hover.

            I don’t know where the delay time is set, but I’ll bet Susan does. wink

            Bob
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              That is done by the browser, and I don’t think that can be changed. Google might know, though; they know lots more than I do grin

              Opera user can (maybe) modify the browser’s behavior to some extent:
              http://my.opera.com/Wandering%20electrons/blog/opera-tips-and-tricks-selectively-remove-tooltips-from-opera
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 3749
                • 24,544 Posts
                I think the ones MODx is using are done with Mootools.

                This is from the Mootools docs in the MODx install:

                Class: Tips
                Display a tip on any element with a title and/or href.

                Arguments:
                elements - a collection of elements to apply the tooltips to on mouseover.
                options - an object. See options Below.

                Options:
                maxTitleChars - the maximum number of characters to display in the title of the tip. defaults to 30.
                timeOut - the delay to wait to show the tip (how long the user must hover to have the tooltip appear). defaults to 100.

                onShow - optionally you can alter the default onShow behaviour with this option (like displaying a fade in effect);
                onHide - optionally you can alter the default onHide behaviour with this option (like displaying a fade out effect);

                showDelay - the delay the onShow method is called. (defaults to 100 ms)
                hideDelay - the delay the onHide method is called. (defaults to 100 ms)

                className - the prefix for your tooltip classNames. defaults to ’tool’.
                the whole tooltip will have as classname: tool-tip
                the title will have as classname: tool-title
                the text will have as classname: tool-text

                offsets - the distance of your tooltip from the mouse. an Object with x/y properties.

                fixed - if set to true, the toolTip will not follow the mouse.

                It looks like you could maybe alter the delay with a js statement (tool.tool-tip.showDelay=5000), or, for sure, by editing showDelay in about line 5621 of the Mootols js file.

                Sometimes PhpEd’s "Search in files" is even better than Google. wink

                As an aside, the Windows Vista advanced search with "search in files" is not only slow, but completely worthless, as far as I can tell. It can’t find things I know are there -- even in files that are indexed.


                Bob
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Yes, MooTools does have a customized tooltip function. And indeed, with javascript you can prevent the tooltips from being displayed. But without javascript, there’s no way to stop the browser from displaying the anchor’s title element as a tooltip.

                  By the way, FF 3 fixes the 80-char limit to the title tooltip display. Not that that helps this situation, but it’s nice to know that when you do want them, they’ll actually work properly.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org