I am new in magento and using magento 2.0.7 version and trying to add custom menu in header. I created a menu with name Horizontal Menus and added item in it from Menus Management in admin panel. Now i am stuck to call this menu in header. I searched around but did not find out the way to do this. Also it tried to do this by static block and added html to it. But i need to make it manageable from Menu Management of admin panel. Can anyone suggest me the way.
Edit:
The code i tried by using static block is
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('megamenu-horizontal')->toHtml();?>
But in static block i can manage it by adding html code but i want it manageable from Menus Management.
Related
i bought one theme and i want to fix my layared navigation to work well.
I need help from which file i have to edit to fix my layered navigation to show after my menu.
First you should find correct template file,then override the template within your theme, then finally rearrange the code so that it displays beneath the vertical navigation. The following may (possibly) work for you. But I don't know what type of theme you are using.
go to your magento backend url, then go to system->configuration->developer then open the debug panel.
Change the current configuration scope to 'Main Website'. Upper left corner of config page.
This should add some items to the debug panel. Set template path hints to 'yes'.
go back to the website and find the phtml file that controls your nav.
copy the file into the theme your using using the same folder structure.
edit that code.
PS another solution may be available to alter the layout files of your site. they get overridden in a similar fashion to phtml files.
Here's what I'm trying to do:
In Joomla 3.1, I'm using the K2 component to build a full content-driven news website.
All is well, but I just don't like the K2 Login module, and therein lies the rub. That module automatically generates two key links:
• Add Item
• My Page
I want to unpublish the login module and add both of these links to a standard Joomla menu. It's easy to add the "add item" link because it's essentially static.
But the "My Page" link is dynamic. I've found the PHP code that generates it:
<?php echo JText::_('My Page'); ?>
But I don't know how to make a plain old Joomla menu item -- as in, one that I add through the menu manager -- to generate that code.
Note: It's important that I be able to use the Joomla menu structure because I'm also using Joomla's access control to hide or show these buttons. Meaning, I've added a "contributor" usergroup, and I only want them to see these links.
Any bright ideas would be much appreciated! Thank you!
You should go to the template you are currently using, in their you create a html folder.
In that folder you create a mod_menu folder.
Than you got your Joomla root > modules > mod_menu.
And copy files which are inside and drop them in the html > mod_menu folder.
Now you can edit the mod_menu to your favors with a rewrite.
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Hope this helps you.
I'm using Magento WordPress Integration I'm wondering how to add fishpig "blog" link to main navigation in magento ? Currently it's only adding a link to my top header navigation.
Thanks
The above answer correctly shows how to add a link to your toplinks, however this is included in the extension by default. If you want to do this, you can enable/disable this from the extension's configuration area.
If you are referring to the Topmenu (the Category menu), it is now possible to create a custom Menu in the WordPress Admin and have this automatically added to your Magento Topmenu.
To do this, create a menu in WordPress. If you only want a single link to your blog, create a menu with this just this link in. Next, login to the Magento Admin and go to the configuration area for WordPress Integration. Under the fieldset labelled 'Menu', you can enable menu integration and select your newly created menu.
This will only work if your theme uses the Magento Topmenu block, which is the default menu block for Magento 1.7. Some custom themes use a custom menu extension for this menu and it is highly unlikely that this custom extension will call the necessary event.
As always, ensure you are using the latest version of WordPress Integration as this feature is quite new and has only recently been added.
I have created a custom joomla template based on blank joomla template from http://blank.vc/. Everything was fine until i clicked either forgot password?, forgot your username? or create account link that bring me to register or reset page in frontend but strangely the top menu was gone.
This is the screenshot :
http://i63.photobucket.com/albums/h145/affan2fly/menugone.jpg
i have no idea why this could happenned.
Please help with this. I appreciate all the help. Thanks!
The problem is because only on the pages selected option for module assignment is set. If you open a page which doesn't belong to any menu, then module won't be shown on it.
You can either check menu module to be shown on all pages, or make a new menu item for forgot password functionality, and then assign that menu for both menu module, and breadcrumbs module.
I don't know which Joomla version you're using and what you use for translation, but if you use Joomfish or Falang, language translation should be much easier.
If you don't use any of those, and you really need to leave everything as it is, then you can also detect current user language in the template, and load either one or the other menu module based on it. That way you can set module to be shown on all pages, and make sure it is displayed only for the choosen language.
I want to create About us, Privacy policy and terms of service page using the joomla's abck-end and i created articles for the same and crate new menu items in the jomsocial menu toolbar for the same. The menu items appears fine in the front end. Everything fine till now.
The problem is when i click on the menu item for article/content page, it moves out of com_community folder and moves to com_content page and it leaves the current design of site. My site navigation for jomsocial disappears. Content appears in default joomla's template not in jomsocial's template.
Any ideas ?? Thanks in advance.....
You need to go back double check everything.
You need to ensure you have the proper menus associated with the proper templates.
Check that joomsocail template is legitimately setup on all pages. And there is nothing over ruling or over riding it