Goaskle.com Help Desk
Goaskle.com Support Department Goaskle.com Help Desk Knowledgebase Web development CMS Magento 2 Coding
How to insert Magezon Ninja Menu into theme using code?
Suggested knowledgebase articles:

How to insert Magezon Ninja Menu into theme using code?

How to insert Magezon Ninja Menu into theme using code?

Use this line for insert into theme code:

{{block class="Magezon\NinjaMenus\Block\Menu" identifier="YOUR_MENU_IDENTIFIER"}}

in php:

 

<?php echo $this->getLayout()

->createBlock('Magezon\NinjaMenus\Block\Menu')

->setIdentifier('test1')

->toHtml();

?>

 

Was this article helpful? Yes | No

Article Details

Article ID:
43
Category:
Coding
Date added:
02.09.2020 07:32:23
Views:
700
Rating (Votes):
(1)
Go back

Related articles

  • How to add cutom block based on static blocks in admin section using php?
  • How to add custom jquery javascript to theme.liquid?
  • How to add simple account / logout links where login changes to logout when signed in ( login / register ) for cms magento 1.x ?
  • How to fix error cannot instantiate interface Magento\Theme\Model\Theme\StoreThemesResolverInterface#0 <magento root>/vendor/magento/framework/ObjectMa nager/ObjectManager.php(70)?
  • How to use script for Magento 2 for auto creation of cms pages using your own template based on magezon page builder or based on HTML?
  • How to fix error in Magento 2 PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Theme\Model\Theme\StoreThemesResolverInterface vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer. php:50?

Powered by Help Desk Software HESK
More IT firepower? Try SysAid