Hey guys,
Help me out here.
I have no clue why Magento 2.1.4 doesn't have a option in the Admin panel to add a 'Home' button to the Top Menu. I think that every Store CMS has something like that, was stunned that it wasn't here. Also i cannot add a Category and redirect it to a Custom Made Page inside the CMS,... Come On, these are standard things,..
So now i have a problem because i would like to add a Home button in front of my Category's and some Custom made Pages after my Category's.
<Home> - Category1 - Category2 - Category3 - <About-Us> - <Facebook> - <etc>
Also i would like to use a image as Home Icon,..
I have tried a dozen of things, but i can't seem to get it working;
The last thing i did was;
Go here (create file); Custom\Theme1\Magento_Theme\layout\default.xml
Pasted into that file;
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="header.links"> <block class="Magento\Framework\View\Element\Html\Link" name="test"> <arguments> <argument name="label" xsi:type="string" translate="true">test</argument> <argument name="path" xsi:type="string" translate="true">test</argument> </arguments> </block> </referenceBlock> </body> </page>
- Cleared Static/Frontend Folder
- Refreshed Page
- And nothing happened,..
Can you guys please help me out here?
Isn't there a module or extension which i can install, why do i have to change the code,...
Thanks!
Solved! Go to Solution.
Thanks for the help!
In the end i have bought another extension (Mega Menu) for displaying a custom menu which i can manually adjust to my whishes with images, etc.
Cost me €30,- but it was worth it
The best and the easiest option is to create a new category and set URL key as "/".
Also make sure that you have deleted the .html URL suffix from Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization
Screenshot below:
and here you go. That's how you create a home button in M2 without having to use a third party extension.
Hi, thanks for your answer.
I now have a Home link, for some reason i cannot add two Home links,.. but okay.
Next Question is how to Add a Link to a CMS page,.. About Us or something,..
Because when i fill in by URL KEY: aboutus |
It is telling me that the url already exists,.. yeah i now i created the page myself though,..
@Pc2day in that case, best is to use a third party extension (if you don't want to code it). Alternatively, make sure of the Magento Rewrite module and redirect new-url-key to your existing-url-key.
Hope it helps.