credit card logos in the footer

8 months ago
Hi All,

Whats the best way to display credit card logo in the footer block.

cant seem to get the url to find the image on the server from css.

Using version 4.20, default clean theme with no modifications.

Regards
8 months ago
I think it will be better to customize the defaul.cshtml of FooterViewComponent and place the image's relative path in the image src.
8 months ago
sanju.dahal741 wrote:
I think it will be better to customize the footer.cshtml and place the image's relative path in the image src.


Thank for the reply, what's the best practice for the relative image path.

Regards
8 months ago
Place your image at any directory and render it like this:
 <img src="@Url.Content("~/Views/Content/img/yourImage.extension")" alt="" />


Here the code renders image named "yourimage.extension" from "Views/Content/img/"  directory.
8 months ago
sanju.dahal741 wrote:
Place your image at any directory and render it like this:
 <img src="@Url.Content("~/Views/Content/img/yourImage.extension")" alt="" />


Here the code renders image named "yourimage.extension" from "Views/Content/img/"  directory.


Thank you very much for your help.

Regards