WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: emObA - Email Obfuscator Advanced] Flexible CSS (3 posts)

  1. sassymonkey
    Member
    Posted 3 years ago #

    LINK TEXT CLASS

    I notice that there's inadequate CSS for flexible styling of working email links using emObA.

    Is it possible to add some code to the plugin somewhere to add a class attribute to the <span> tag that wraps the link text? Something like <span class="emoba-link">...</span> would do.
    _________

    SPECIFICS

    For example, I'm using the shortcode method of adding emails using the plugin like so:

    [EMAIL send email | name@someaddress.com]

    This works fine but spits out only a plain <span> around the "send email" link text and the anchor tag that wraps the span has a globally unusable id attribute with a number like id="emoba-3885" that is unique to each anchor.

    In other words, I can't style the link text in the span because there's not one adequate CSS class attribute to make it possible.
    _________

    EASY AND USEFUL TO ALL

    Like many people, I'm using link identification so I can have tiny icons next to links for identifying PDFs, email, mp3, and external sites, etc. To do so, I need these links to have global class attributes.

    This seems like a perfectly useful feature that would be easy to implement and provide flexibility to those who want it and no harm to those who don't.

  2. kirkpatrick
    Member
    Posted 3 years ago #

    In the development version I have added classes to the link itself (emoba-link) and to the link's innertext -- the visible text of the link (emoba-realname). I may make some more adjustments, but it's on its way. I will release this as stable 1.6 in a few days.
    Thanks for the suggestion.

  3. kirkpatrick
    Member
    Posted 3 years ago #

    1.6.5 has classes as requested, and also allows links to have class and style attributes.

Topic Closed

This topic has been closed to new replies.

About this Topic