StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Hover over words and show a small text popup (http://www.studiopress.com/support/showthread.php?t=112394)

johnbroome 08-03-2012 07:26 AM

Hover over words and show a small text popup
 
Hi All,

Here is a screen shot of this in use in wordpress itself but I would like to use in on www.paaudiovisual.co.uk. So I can hover over for example a technical term like "DAC" or "streaming" and it will explain more.

http://www.paaudiovisual.co.uk/wp-co...ith-pop-up.png

My aim is to find one that is Wordpress friendly and therefore easy to install.


Cheers,


John

adew 08-03-2012 01:17 PM

Hi John,

I use the cluetip jQuery script in the DCG settings page. It's not that hard to implement and you can see how I do it in the relevant DCG plugin files, in includes/dfcg-admin-core.php (though, to be honest, my implementation is a little clunky in places...).

In overview:
1. Enqueue the script itself and its CSS file
2. Create the function script file and enqueue it in the footer (see wp_enqueue_scripts() )
3. Add the relevant markup to your in-post links
4. Add the popup content in appropriate markup in your post.

Before you begin, however, do a search on WP Extend as someone may well have developed a plugin for this type of thing already.


All times are GMT -5. The time now is 04:03 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.