Close

Move InfoBoxes to the end of the page

Amer
5 years ago
#15090 Quote
Avatar
  • 2
Hello,

I have enabled Info Boxes in theme settings (all of the four), but I cannot figure where to set up the Widget Zone for them (if that was possible via settings) because I want to move them to page end (before footer).

It is not a problem if that can be done only via code, just point me where to start and I will try my best to achieve it.

Thanks in advance.
hristian.dimov
5 years ago
#15091 Quote
Avatar
  • Moderator
  • 386
Amer wrote:
Hello,

I have enabled Info Boxes in theme settings (all of the four), but I cannot figure where to set up the Widget Zone for them (if that was possible via settings) because I want to move them to page end (before footer).

It is not a problem if that can be done only via code, just point me where to start and I will try my best to achieve it.

Thanks in advance.


Hi,

Open \Themes\Emporium\Views\Home\Index.cshtml file and find this line:

@await Component.InvokeAsync("Widget", new { widgetZone = "emporium_home_page_info_boxes" })


Then just move it wherever you need ( you can even move it to another file if needed )

Hope this helps!
Regards,
Hristian Dimov
Nop-Templates.com
Amer
5 years ago
#15110 Quote
Avatar
  • 2
oh! I feel dumb because I didn't guess that 😅

Worked fine for me, thanks a lot.