credit card logos in the footer

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years 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
4 years 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.
4 years 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
4 years 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.
4 years 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
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.