• keko4321

    (@keko4321)


    Hello everyone

    so i have this link button

    <?php previous_post_link('<div class="older-wrapper">%link</div>','<img src="imglink"/>'); ?>

    how i can add hover text to this button ? just to show simple text on mouse hover like “older post”

    Thanks in advance

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    (@esmi)

    Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

    Phil

    (@owendevelopment)

    Try this:

    <?php previous_post_link('<div class="older-wrapper">%link</div>','<img src="imglink" title="Older Post" />'); ?>

    Thread Starter keko4321

    (@keko4321)

    @esmi thanks mate it’s good tool but it’s pretty useless to me since i don’t have any experience in CSS/HTML .

    @phil tested now but it doesn’t work, anyway thanks

    esmi

    (@esmi)

    Can I ask why you are tying to do this? any text you apply using a tooltip is going to be unseen by many potential users – including those who are using mobile technology. Generally speaking, if text is worth adding, it’s worth adding where it can be plainly seen.

    Thread Starter keko4321

    (@keko4321)

    Thanks for the quick reply Esmi,BP what i’m trying to do when someone hover the mouse over the button it shows tooltip/text
    so i need (title attribute) code that works with that button code

    Thanks

    P.S. i believe you can also call a woman mate ..

    esmi

    (@esmi)

    What information would be in this tool top?

    PS: “mate” is fine with me ??

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’d prefer it if everyone addressed Esmi as Theme Diva.

    Thread Starter keko4321

    (@keko4321)

    @esmi
    nothing much really even it’s not that important .
    website about comics and i’m still thinking about catchy phrase =P
    something funny to get people to click to view previous posts/images and i wanted to change the text weekly

    esmi

    (@esmi)

    That might work better if it was the actual link text in previous_post_link() and next_post_link(). In theory, it might be possible to create an array of phrases and then use a function to pull a a phrase out of the array as the link text and drop it into previous_post_link().

    Or set up the link texts as variables near the top of functions.php (for easy manual access) and use the variables in your pagination template tags.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘add Hover Text to Older Post Button’ is closed to new replies.