WordPress.org

Ready to get started?Download WordPress

Forums

WP Glossary
[resolved] Hiding Text When Glossary Term Viewed in Tooltip (8 posts)

  1. Nattypat Crochet
    Member
    Posted 1 year ago #

    When a glossary definition is viewed in a WP Glossary tooltip popup, I would like to hide some text from the glossary definition from showing in the tooltip box. The text I would like to hide is a link that says "Back to Glossary" which shouldn't be visible as users aren't actually viewing the definition in the glossary (just in the tooltip). Can I do this using css? Or do I need js? I know nothing of js.
    Check out the "drape" tooltip link on this page. Thanks!

    http://wordpress.org/extend/plugins/wp-glossary/

  2. Nattypat Crochet
    Member
    Posted 1 year ago #

    I'll also note that links within the glossary definition don't work when viewed in the tooltip. In my case, I don't want them showing at all, but most people would probably want to keep the links working. Possible bug.

  3. TCBarrett
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Nattypat :)

    The plugin looks for the excerpt to put in the tooltip. If there is none, then it uses the full post content. So you can update the excerpt with just the text you want in the tooltip.

    It works just like blog post excerpts. Codex looks a little out of date, but this might help explain them: http://codex.wordpress.org/Excerpt#Excerpt.2C_automatic_excerpt.2C_and_teaser

  4. Nattypat Crochet
    Member
    Posted 1 year ago #

    Thank you for clarifying. I'm now using the excerpt area to specify the exact text I want. Follow up question: Can I remove the "Continue Reading ->" from showing in the tooltip? Thanks.

  5. pacovilla
    Member
    Posted 1 year ago #

    My problem is the tooltip is displaying "Share/Save" from a preceding plugin AND the text of the following "latest Posts" page. I'd like to display the glossary as a tooltip but just killing tooltips would be OK too. My theme already uses the_excerpt so I don't want to mess with it. What am I missing? See this post and hover over "3N" in first paragraph below the leading blockquoted section.

  6. TCBarrett
    Member
    Plugin Author

    Posted 1 year ago #

    Just like any other filter, the excerpt and post content filters can work across many or just one post type.

    Without control over other plugins (like Latest Posts) there isn't much I can do. It would need for those plugins to have the option of excluding glossary term excerpts/posts.

  7. netigate
    Member
    Posted 1 year ago #

    hi. nice idea with the tooltip, but where do i actually see the tooltips?

    i added the excerpt texts, but since there is no autolink functionality inbuild, i wonder where the user sees the tooltip?

  8. netigate
    Member
    Posted 1 year ago #

    @pacovilla: are u still using wp-glossary? i ve seen that you managed to get the tooltips working, but i havent found the option for it yet

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic