Close

Moving Social Media Icons

LaurenIFM
one year ago
#14587 Quote
Avatar
  • 3
Hi,

Does anyone know if it is possible to move the social media links from the footer to the header in the Nop Smart theme?
Would really appreciate it.
hristo
one year ago
#14590 Quote
Avatar
  • Moderator
  • 119
LaurenIFM wrote:
Hi,

Does anyone know if it is possible to move the social media links from the footer to the header in the Nop Smart theme?
Would really appreciate it.


Hello,

if you move the corresponding code:

@await Component.InvokeAsync("SocialButtons")

from the footer cshtml file (Themes\Smart\Views\Shared\Components\Footer\Default.cshtml) to the header cshtml file (Themes\Smart\Views\Shared\_Header.cshtml), it will work. Of course there will be no css styling for the social buttons in the header so you have to create some custom css on your own to make it look proper.

The above example is targeting nopCommerce 4.0 only. If you are using an older version, let us know which one is it and we will provide you with another hint.

Regards
Regards,
Hristo Gospodinov
Nop-Templates.com
LaurenIFM
one year ago
#14591 Quote
Avatar
  • 3
Hi,

I am using NopCommerce 3.80
hristo
one year ago
#14593 Quote
Avatar
  • Moderator
  • 119
LaurenIFM wrote:
Hi,

I am using NopCommerce 3.80


Ok, then move the corresponding code:

@Html.Action("Social", "Common")

from the footer cshtml file (Themes\Smart\Views\Common\Footer.cshtml) to the header cshtml file (Themes\Smart\Views\Shared\Header.cshtml)

And to make it clear again - don't expect it to look good. once applied, you have to style it on your own.
Regards,
Hristo Gospodinov
Nop-Templates.com