Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

problem with displaying the logo in SVG format on the blog (Wordpress)

  • 10 件の返信
  • 0 人がこの問題に困っています
  • 49 回表示
  • 最後の返信者: tripsoverpoland

more options

I have 2 pages where I recently inserted a new logo in SVG format. Unfortunately, the standard img src=... code does not display the top line of large text in the logo, although opening the SVG file itself displays everything normally with the full text. This effect is visible on my blog at: https://blog.tripsoverpoland.pl/. On the second page at: https://tripsoverpoland.pl/ I had the same effect, but I found a workaround on some forum in the form of code: "<object data="TOPWPPLOGO.svg" type="image/svg+xml" style="width:100%; border:0; margin:0; padding:0;"></object>" and thanks to this the logo is displayed in its entirety on the page. Unfortunately, I cannot use such a code directly in Wordpress, because I upload the logo there through the application, and in the place of the logo I cannot use my own html code. Is there any effective way to solve this problem in Wordpress? Although I do not know if this is a problem with Wordpress or Firefox, because in all other browsers with a blog logo in SVG format there is no problem. Thank you very much in advance for looking into this problem. Best wishes Marek Wojciechowski

I have 2 pages where I recently inserted a new logo in SVG format. Unfortunately, the standard img src=... code does not display the top line of large text in the logo, although opening the SVG file itself displays everything normally with the full text. This effect is visible on my blog at: https://blog.tripsoverpoland.pl/. On the second page at: https://tripsoverpoland.pl/ I had the same effect, but I found a workaround on some forum in the form of code: "&lt;object data="TOPWPPLOGO.svg" type="image/svg+xml" style="width:100%; border:0; margin:0; padding:0;"&gt;&lt;/object&gt;" and thanks to this the logo is displayed in its entirety on the page. Unfortunately, I cannot use such a code directly in Wordpress, because I upload the logo there through the application, and in the place of the logo I cannot use my own html code. Is there any effective way to solve this problem in Wordpress? Although I do not know if this is a problem with Wordpress or Firefox, because in all other browsers with a blog logo in SVG format there is no problem. Thank you very much in advance for looking into this problem. Best wishes Marek Wojciechowski
添付されたスクリーンショット

この投稿は cor-el により に変更されました

すべての返信 (10)

more options

title correction: problem with displaying the logo in SVG format on the blog (Wordpress) standard html code for images:

more options

once again standard html code for images - img-src=....

more options

(deleted)

この投稿は cor-el により に変更されました

more options

I tried the mentioned tools, although I'm not very familiar with their operation. Deleting all history and all downloads by Firefox, or opening the window to private mode and downloading the blog page, do not change the situation with the display of the logo in SVG format. In the same session, opening only the SVG logo image from the blog page in a new window shows the entire logo, so the problem is between processing the html code from Wordpress and processing the logo image embedded in this code (img-src=...svg). Then the top part of the picture disappears. And that's only in Firefox with the html code: img-src. For code with <object>, Firefox correctly displays the entire logo.

この投稿は tripsoverpoland により に変更されました

more options

Sorry, my above reply seems to be meant for another thread, so I will remove it.

more options

To which image are you referring? There is nothing obviously wrong when I load the page. Can you post a screenshot of how the image should appear?

more options

The Trips over Poland tourist attractions text is missing with the IMG tag.

more options

To better see what are the problems with my logo in SVG format, I created a test page for Firefox: https://tripsoverpoland.pl/firefox/ The logos with the img src=...svg code are marked with red (wrong display in Firefox) and the logos with the object svg code are marked with green (proper display in Firefox). Screenshot of this page attached. Because not only one blog logo is incorrectly displayed by Firefox using the code img src=...svg.

この投稿は tripsoverpoland により に変更されました

more options

To better see what are the problems with my logo in SVG format, I created a test page for Firefox: https://tripsoverpoland.pl/firefox/ The logos with the img src=...svg code are marked with red (wrong display in Firefox) and the logos with the object svg code are marked with green (proper display in Firefox).

Because not only one blog logo is incorrectly displayed by Firefox using the code img src=...svg. Screenshot of this page attached.

more options

I spent a while in the Inkscape editor to check whether some minor adjustments to the SVG image could solve the reported problem. So I removed the top large title and pasted it back into the newly created area. I also changed the size of all fonts to integrals (without fractions). And basically this has already caused the SVG format logos to be displayed correctly in both codes (src img= and object..svg). So this workaround for Firefox seems to work, but it's not a definitive solution to this problem. The blog website (https://blog.tripsoverpoland.pl) displays the SVG logo without distortions (img src= code).