How to disable hover text from category links?

  • Author
    Posts
  • #95563

    I’m having a trouble with catergory links in my footer texts. I don’t want to have title attributes visible on mouse hover because the title text consists of a paragraph and not just a few words. The result does not look good. Of course the problem only concerns the desktop.
    Can you help me and tell how to prevent the whole text popping up when you hover over the category link in footer?

    Website: marjutus.media

    #95676
    Zed
    Cryout Creations mastermind

    The title attribute is used by the browser for accessibility reasons and its display is under the browser’s control. The title attributes should never include that much content (how are you getting it there, anyway? those normally include just the categories title).

    You can force some browser behaviour changes with the following CSS:

    #categories-4 a:hover {
        pointer-events: none;
    }

    but this may render the links totally unusable on some browsers.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #95719

    Thank You! I tried the tip, but as you said, the links rendered unusable. It looks like a coding mistakes, because the title includes the full category page content: https://marjutus.media/inspiraatiota/
    There are not many options in category page: You can just write or leave the page empty.

    #96367
    Zed
    Cryout Creations mastermind

    You may have plugins filtering those titles (because they are not behaving normally).
    Check for this by temporarily disabling all active plugins.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to disable hover text from category links?’ is closed to new replies.