cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom Stuff Top Menu

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Adding custom Stuff Top Menu

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!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Adding custom Stuff Top Menu

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 Smiley Happy

View solution in original post

4 REPLIES 4

Re: Adding custom Stuff Top Menu

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: ab4afcc2 70bc 41d4 a7dc 5e79a9754df9 5Cbff65c35 5644 4e22 8baa 058c5ce672de.png

 

 

Desctop screenshot.png

 

 

Desctop screensho1.png

 

 

 

and here you go. That's how you create a home button in M2 without having to use a third party extension. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: Adding custom Stuff Top Menu

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,..

Re: Adding custom Stuff Top Menu

@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. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: Adding custom Stuff Top Menu

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 Smiley Happy