WordPress.org

Forums

MimeTypes Link Icons
Classname doesn't disable icon when placed around href image tag (3 posts)

  1. bmwmaw
    Member
    Posted 1 year ago #

    I have a text link to a pdf file directly above a jpeg image that points to download the same pdf file. I added a class called "nomime" to the settings page. I then used it in this fashion around the text link and the image link, but it only disabled the icon by text link not the image link. Code I used
    <div class="nomime"> **"my href link"** </div>

    Any suggestions?

    http://wordpress.org/plugins/mimetypes-link-icons/

  2. jrf
    Member
    Plugin Contributor

    Posted 1 year ago #

    Could you give me a link to the page where this is happening please ?

  3. eagerterrier
    Member
    Plugin Author

    Posted 1 year ago #

    @bmwmaw - I think I know what you're saying here and I'm not sure there's a solution with our code. If you can take a second to verify the steps I think are causing this:

    1. You have a link that wraps both an image AND text in the form <a href="foo.pdf"><div class="nomime"><img src="myimg.jpg" /></div>Download my pdf</a>
    2. The icon comes BEFORE the image rather than (as you would like) before the text

    The plugin searches your copy for hyperlinks and scans those links for extensions that are allowed within the plugin. It then adds unique classnames to those links within your copy.

    Therefore, we need a way of disabling the code on a link rather than any contents of that link.

    If you can confirm the scenario above, I can get back to you with some solutions.

    Thanks for using the plugin

    TC

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MimeTypes Link Icons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic