Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I am in the midst of editing a website and want to change the pixelated PNG logo to a SVG-file.
The image(SVG) shows up in the preview, but not on the actual webpage. (See the attached picture.)
What am I doing wrong? or how can I fix it?
Hi @katrine,
try this:
-- where logo is your alias
@{ string imgLogo = Model.Root().Value<IPublishedContent>("logo")?.Url; } <img src="@imgLogo" alt="Company logo">
Addendum to the above answer, use Url(), not Url as the latter has been deprecated.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
SVG as a logo file
Hi,
I am in the midst of editing a website and want to change the pixelated PNG logo to a SVG-file.
The image(SVG) shows up in the preview, but not on the actual webpage. (See the attached picture.)
What am I doing wrong? or how can I fix it?
Hi @katrine,
try this:
-- where logo is your alias
Addendum to the above answer, use Url(), not Url as the latter has been deprecated.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.