Close

External Link

neilzb
4 years ago
#21201 Quote
Avatar
  • 6
Hi,
Is there any way to add an external link to the header menu when using Mega Menu?

Thanks
SDobrev
4 years ago
#21209 Quote
Avatar
  • 283
Hi,

Yes, it is possible. There is a Custom Link type menu item.
Best Regards,
Stoyan Dobrev
Nop-Templates.com
concurrent
3 years ago
#21772 Quote
Avatar
  • 3
Hi,
is it possible that the custom link opens in a new tab? We don't want the user to leave the store when he clicks on the link.
todor.atanasov
3 years ago
#21780 Quote
Avatar
  • Moderator
  • 249
concurrent wrote:
Hi,
is it possible that the custom link opens in a new tab? We don't want the user to leave the store when he clicks on the link.


Greetings,

Thank you for your reply!

Unfortunately, there is no such feature in the plugin.

You may modify the HTML of the custom link items in the \Plugins\SevenSpikes.Nop.Plugins.MegaMenu\Views\Components\MegaMenuMenuItem\MegaMenuMenuItem.cshtml file, by adding target="_blank" as attribute on line 15. Bear in mind that this will affect all the custom links that you create on your website.
Best regards,
Todor Atanasov
Nop-templates.com
concurrent
3 years ago
#21781 Quote
Avatar
  • 3
Thanks for the answer. That's good for now, as a workaround.

Would certainly be a good extension for the MegaMenu, if you could make this configurable in the future. Would be relatively easy to implement and would bring extra value.

Regards,
Adrian
concurrent
3 years ago
#21782 Quote
Avatar
  • 3
Oh, I just see that this has already been implemented.
Model.OpenInNewWindow

I have no idea why I overlooked this. Or probably this just came in with the latest version?

In any case: Great, thanks! :-)