WordPress.org

Ready to get started?Download WordPress

Forums

Easy Tooltip
How can I call a tooltip on inside my front-page.php? (2 posts)

  1. bryankeithdavis
    Member
    Posted 1 year ago #

    I love this plugin! It works fantastically on my pages and posts.

    One problem: I am trying to call the tooltip function from inside my theme's front-page.php file. Unfortunately, using the short code is not working.

    Can you give my instructions on how to call the function manually?

    Thanks,
    Bryan

    http://wordpress.org/extend/plugins/easy-tooltip/

  2. Treebeard
    Member
    Posted 1 year ago #

    I know it's been months since you posted this question, but I just figured out how to add a tooltip to a link in a theme php file, thought it might help:

    <a href="<?php echo get_option('home'); ?>/mypage" class="easy-tooltip"><span class="classic">Text for tooltip here</span></a>

    You could modify that to just add a tooltip to text or an image without a link involved, something like:

    <a class="easy-tooltip" href="#">Click Here<span class="classic">Text for tooltip here</span></a>

    or with an image:

    <a class="easy-tooltip" href="#"><img src="linktoimage.jpg" /><span class="classic">Text for tooltip here</span></a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic