• Current css class target is prepended by ‘img’. I need to target an svg icon image that is not possible to manually set its class (third party theme won’t allow me). Consider this code:

    <div class="svg-icon>
      <img src="image-source.svg"/>
    </div>

    I need to set my css class target to: ‘.svg-icon img’ but the plugin prepending img: ‘img..svg-icon img’.

    I thinks it’s good to add css selector target option other than just a class target for developers who can’t manually set an img class.

    https://ww.wp.xz.cn/plugins/svg-support/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hey there,

    I see your issue… Let me ponder and see if I can come up with another way to allow the targeting you need.

    Plugin Author Benbodhi

    (@benbodhi)

    Hello again,

    I have had a bit of a look in to this and it would take a huge amount of changes…
    The way my plugin works is primarily with images and needs the ability to use the media uploader as a standard user without the need to manually write the code.
    I have this on my list of things that might be considered for future versions now, but I don’t see it happening anytime too soon unfortunately.

    Plugin Author Benbodhi

    (@benbodhi)

    Hi,

    I’m wondering if you came up with a workaround or anything?
    There hasn’t been a lot of interest/requests for this functionality, though I still have it on my future features list. Possibly when I do a full plugin rewrite to change to OOP.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSS Class to target’ is closed to new replies.