-
Notifications
You must be signed in to change notification settings - Fork 865
Stripping Image Classes #532
Comments
Why was this issue closed? I too have just encountered this issue. What's the fix? The issue is that this is stripping any Advanced Wordpress image options which means you cannot override or add classes or Titles to images in the Wordpress editor. |
I copied library/cleanup.php to my child theme and replaced the $allowed_classes array on line 174 with the following |
A lot of the stuff in |
After the last comment, it looks as if the whole |
I'm still having the image alignment problem as well. WP 4.4.1. Not clear on the fixes above as cleanup has changed, maybe looking in the wrong place? |
Just to add to the list of issues with cleanup.php I was getting XML errors from Facebook avatar images brought in using the WP Social Login plug-in. This issue again was the |
Fixed #657 |
Fantastic. |
Hi Ole,
Thanks for the great work on FoundationPress.
In recreate_img_tag() you're only allowing alignment classes on images. Just curious why that is. I had an issue with a site I'm working on where I needed some extra classes applied to images but they were being stripped out.
Thanks again!
The text was updated successfully, but these errors were encountered: