Webshop logo SVG upload not supported alternatives?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 năm cách đây
Hello,

I am trying to use a SVG logo instead of a JPG/PNG one. This is not possible as far as i can see, is there a work around on how i can solve this.


<div class="header__logo">
@Html.Action("Logo", "Common")
<!--
<a href="/">
      <img src="logo.svg">
</a>
-->    
</div>


if not, how can i get the dynamically URL to the theme root directory, so that i can upload the logo manually inside the /img/ folder.


Thanks in advance.
6 năm cách đây
Galanthus wrote:
Hello,

I am trying to use a SVG logo instead of a JPG/PNG one. This is not possible as far as i can see, is there a work around on how i can solve this.


<div class="header__logo">
@Html.Action("Logo", "Common")
<!--
<a href="/">
      <img src="logo.svg">
</a>
-->    
</div>


if not, how can i get the dynamically URL to the theme root directory, so that i can upload the logo manually inside the /img/ folder.


Thanks in advance.


You are right...you just need to upload your file via FTP to your /content/images/uploaded/ folder, then, if you are using version 3.80 or 3.90 open this file using notepad:
/views/common/logo.cshtml
  
Change this line:
<img title="" alt="@Model.StoreName" src="@Model.LogoPath">


to this:
<img title="" alt="@Model.StoreName" src="/content/images/uploaded/your-image-name.svg">


If you use a custom theme with 3.80 or 3.90, you will probably have to change it here instead:
/themes/yourcustomtheme/views/common/logo.cshtml


If it is an older version of nopcommerce than 3.80, you will find the img reference for your logo here:
/views/shared/header.cshtml

..or if you have a custom theme on your older version of nopcommerce, it would probably be here:
/themes/yourcustomtheme/views/shared/header.cshtml
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.