Removes img classes/alt attr and wrong width/height output (maybe svgs only)
-
Removes classes from custom images and alt attr (might be svgs only) added via php. It doesn’t remove from imgs added through themes but the custom ones I echoed via php is filtered.
The targeted imgs is svgs only.For example I wrote this:
echo "<span class='tflag'>" . "<a href='linkhere'>" . "<img class='fromtcat' alt='fromtcat' src="urlhere.svg" />" . "</a>" . "</span>";
The output was:
<img src="urlhere.svg" height="auto" width="100%" />
the css was: width:67px; height:auto;
It should be:<img class="fromtcat" alt="fromtcat" src="urlhere.svg" height="auto" width="67px" />
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Removes img classes/alt attr and wrong width/height output (maybe svgs only)’ is closed to new replies.