admin管理员组

文章数量:1122846

I need to create a custom type post where will be added the name of the client and its logo. The logo will be added as a Featured Image. But the problem is that WordPress does not recognize the SVG size.

What is an alternative fixing that? I tried to modify the CSS but it didn't work.

I need to create a custom type post where will be added the name of the client and its logo. The logo will be added as a Featured Image. But the problem is that WordPress does not recognize the SVG size.

What is an alternative fixing that? I tried to modify the CSS but it didn't work.

Share Improve this question edited May 11, 2021 at 16:27 brasofilo 22.1k8 gold badges69 silver badges264 bronze badges asked Mar 23, 2020 at 16:34 danihazlerdanihazler 1296 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The answer was quite simple ... just be sure that the height and width are set inside the svg code, like: <svg height="100" viewBox="0 0 50 50" width="100">

本文标签: post thumbnailsFeatured Image svg height and width 1px only