credit card logos in the footer

1 month 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
1 month 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.
1 month 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
1 month 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.
1 month 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