Adding Image to Footer

10 months ago
Hi everyone,

I wanna add an image and its URL link.
I tried Footer.cshtml and put an <a> <img> </a> on it but it doesnt work :(
10 months ago
What is the nop version?
10 months ago
shahabset wrote:
Hi everyone,

I wanna add an image and its URL link.
I tried Footer.cshtml and put an <a> <img> </a> on it but it doesnt work :(


Hi shahabset,

are you perhaps using a theme for your site?

If not, can you share your code so we can try and find the issue?

Best regards,
Valentin.
10 months ago
My Nop Commerce version is 4.2
And I'm using a theme but I changed the THEME footer.cshtml

Here's my Footer.cshtml:

@using SevenSpikes.Nop.Plugins.FacebookShop.Models

@model FacebookFooterModel

<div class="footer">
    @T("Content.CopyrightNotice", DateTime.Now.Year.ToString(), Model.StoreName);
  
</div>
10 months ago
Hi again shahabset,

what you are referring to is actually the footer of the FacebookShop plugin and it is not part of any theme folder.

If you want to add an anchor with an image to it you better add a folder in the plugin and place your image there, then link the image from your newly added folder.

If you add an Images folder directly in the plugin folder, it should look something like:


<div class="footer">
    @T("Content.CopyrightNotice", DateTime.Now.Year.ToString(), Model.StoreName)
    <a href="YOUR_LINK"><img src="~/Plugins/SevenSpikes.Nop.Plugins.FacebookShop/Images/YOUR_IMAGE" /></a>
</div>


Best Regards,
Valentin.
10 months ago
Thanks for your quick reply.
That was my mistake I dont want to change Facebookshop footer. The main Footer is my target.
Where can I find the file which refers to main Footer?
10 months ago
shahabset wrote:
Where can I find the file which refers to main Footer?

Here. Link showing default view file, in case of the theme, need to change it in this same file location of the theme used.

Regards,
Tom
10 months ago
shahabset wrote:
Thanks for your quick reply.
That was my mistake I dont want to change Facebookshop footer. The main Footer is my target.
Where can I find the file which refers to main Footer?


Hello again shahabset,

as far as I know, you are using our Emporium theme so in your case, the right Footer file to edit should be in the following location:

~ Presentation\Nop.Web\Themes\Emporium\Views\Shared\Components\Footer\Default.cshtml

Best Regards,
Valentin.
10 months ago
Thanks for your reply.
Worked for me.

I Found that after every change in the codes it is needed to RESTART the application.
That was my mistake.
5 months ago
I need to add credit card logo's to nopcommerce or worldpay won't let me go live, how can I do that, I didn't understand this on here