Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter mtngeekuk

    (@mtngeekuk)

    Done and still the same.

    Still getting the fontawesome download icon, rather than the SVG.

    ??

    Would upgrading my version of WordPress help?

    Remove the snippet https://www.ads-software.com/support/topic/svg-images-not-working?replies=16#post-6386019
    it was just for testing before the last patch. What you see is the png taken from wikipedia. Now all works, you can see the sticky header.

    Thread Starter mtngeekuk

    (@mtngeekuk)

    Hi,

    THANK YOU SO MUCH! Now working exactly as expected.

    Just out of interest, what was the issue?

    No problem.
    Could you mark this topic as resolved? Thanks.
    What was the issue?
    The first issue was that a wp function gets wrong height and width values for those svg images (wp_get_attachment_image_scr), and probably for all svg images. Dunno. That function returned height=1 width=1, so the image was forced to 1px x 1px .
    The second issue was due to a tc function which retrieves mime types from file names. In this case something in your url produced an unwanted match with a non svg mime type. With the second “patch” we tell to that function to perform the match only on the basename (filename.ext).
    Hope this helps.

    Thread Starter mtngeekuk

    (@mtngeekuk)

    Cool, thanks again

    You’re welcome.
    Hopefully those pull-requests will be merged in the next customizr release… otherwise you have to re-apply them ??

    Cheers

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘SVG images not working’ is closed to new replies.