add CMS page link category menu in Magento 2Adding a non-category link to the navigation links in magento 2Magento 2 - Adding a CMS page link to menuAdd CMS page links into Nav menu using local.xmlHow to add active state to CMS Page in Top Menu?In Magento2, I want to add cms page link in header top menu before wishlist linkMagento 2.1.8 - Menu not showing on CMS pagesHow to add custom link in main menu in magento 2?what is the difference between cms page link and cms static block. Catalog product link and catalog category linkMagento 2 How to add Home link in navigation bar!Magento2 add a cms page link to menuAdd Category to breadcrumbs Magento 2Add link before Catalog Main Menu
A planet illuminated by a black hole?
Using "Kollege" as "university friend"?
Character is called by their first initial. How do I write it?
Passing lines from the text file of a list of files to or as arguments
Determine if a triangle is equilateral, isosceles, or scalene
How can I receive packages while in France?
401(k) investment after being fired. Do I own it?
Why no ";" after "do" in sh loops?
Terence Tao - type books in other fields?
Talk to manager when quitting my job
Do I need another Schengen Visa
Why is chess failing to attract big name sponsors?
Why are off grid solar setups only 12, 24, 48 VDC?
Monty Hall Problem with a Fallible Monty
Is the apartment I want to rent a scam?
How may I shorten this shell script?
Book about young girl who ends up in space after apocolypse
Why are angular mometum and angular velocity not necessarily parallel, but linear momentum and linear velocity are always parallel?
How can I create a shape in Illustrator which follows a path in descending order size?
What are the exact meanings of roll, pitch and yaw?
How do I run a game when my PCs have different approaches to combat?
Company messed up with patent and now a lawyer is coming after me
High income, sudden windfall
Why are there not any MRI machines available in Interstellar?
add CMS page link category menu in Magento 2
Adding a non-category link to the navigation links in magento 2Magento 2 - Adding a CMS page link to menuAdd CMS page links into Nav menu using local.xmlHow to add active state to CMS Page in Top Menu?In Magento2, I want to add cms page link in header top menu before wishlist linkMagento 2.1.8 - Menu not showing on CMS pagesHow to add custom link in main menu in magento 2?what is the difference between cms page link and cms static block. Catalog product link and catalog category linkMagento 2 How to add Home link in navigation bar!Magento2 add a cms page link to menuAdd Category to breadcrumbs Magento 2Add link before Catalog Main Menu
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
How to add cms page link category navigation menu Like
Example Like Home | About Us | Contact Us | Our Products
Please check screenshot
magento2 navigation
add a comment |
How to add cms page link category navigation menu Like
Example Like Home | About Us | Contact Us | Our Products
Please check screenshot
magento2 navigation
You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck
– sami23
May 7 '18 at 13:08
magento.stackexchange.com/questions/123669/…
– Ravindrasinh Zala
May 10 '18 at 9:22
add a comment |
How to add cms page link category navigation menu Like
Example Like Home | About Us | Contact Us | Our Products
Please check screenshot
magento2 navigation
How to add cms page link category navigation menu Like
Example Like Home | About Us | Contact Us | Our Products
Please check screenshot
magento2 navigation
magento2 navigation
edited May 7 '18 at 11:16
Dhaval Solanki
1,4641 gold badge10 silver badges33 bronze badges
1,4641 gold badge10 silver badges33 bronze badges
asked May 7 '18 at 11:02
Ravindrasinh ZalaRavindrasinh Zala
1,3744 silver badges23 bronze badges
1,3744 silver badges23 bronze badges
You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck
– sami23
May 7 '18 at 13:08
magento.stackexchange.com/questions/123669/…
– Ravindrasinh Zala
May 10 '18 at 9:22
add a comment |
You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck
– sami23
May 7 '18 at 13:08
magento.stackexchange.com/questions/123669/…
– Ravindrasinh Zala
May 10 '18 at 9:22
You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck
– sami23
May 7 '18 at 13:08
You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck
– sami23
May 7 '18 at 13:08
magento.stackexchange.com/questions/123669/…
– Ravindrasinh Zala
May 10 '18 at 9:22
magento.stackexchange.com/questions/123669/…
– Ravindrasinh Zala
May 10 '18 at 9:22
add a comment |
2 Answers
2
active
oldest
votes
@Ravindrasinh Zala have you tried this link?
Adding a non-category link to the navigation links in magento 2
add a comment |
Another alternative is to use a new template file via layout xml.
./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml
<?xml version="1.0"?>
<!--
/**
* Copyright info.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="catalog.topnav">
<block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
</referenceBlock>
</body>
</page>
Then use this template file to create link html.
./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml
<?php
/** @var MagentoFrameworkViewElementTemplate $block */
?>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("FAQ")?></span>
</a>
</li>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("Custom Designs")?></span>
</a>
</li>
When you clear the layout and block_html caches, these will show in the menu.
Note:
- This way we won't touch the original
topmenu.phtml
- This will use topmenu.phtml's
$block->getChildHtml()
to render the output - In layout xmls if you ignore the
class=""
attribute for a block, thenMagentoFrameworkViewElementTemplate
class will be used by default.
Hope that helps
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f224971%2fadd-cms-page-link-category-menu-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
@Ravindrasinh Zala have you tried this link?
Adding a non-category link to the navigation links in magento 2
add a comment |
@Ravindrasinh Zala have you tried this link?
Adding a non-category link to the navigation links in magento 2
add a comment |
@Ravindrasinh Zala have you tried this link?
Adding a non-category link to the navigation links in magento 2
@Ravindrasinh Zala have you tried this link?
Adding a non-category link to the navigation links in magento 2
answered May 8 '18 at 10:12
sami23sami23
4501 gold badge2 silver badges10 bronze badges
4501 gold badge2 silver badges10 bronze badges
add a comment |
add a comment |
Another alternative is to use a new template file via layout xml.
./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml
<?xml version="1.0"?>
<!--
/**
* Copyright info.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="catalog.topnav">
<block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
</referenceBlock>
</body>
</page>
Then use this template file to create link html.
./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml
<?php
/** @var MagentoFrameworkViewElementTemplate $block */
?>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("FAQ")?></span>
</a>
</li>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("Custom Designs")?></span>
</a>
</li>
When you clear the layout and block_html caches, these will show in the menu.
Note:
- This way we won't touch the original
topmenu.phtml
- This will use topmenu.phtml's
$block->getChildHtml()
to render the output - In layout xmls if you ignore the
class=""
attribute for a block, thenMagentoFrameworkViewElementTemplate
class will be used by default.
Hope that helps
add a comment |
Another alternative is to use a new template file via layout xml.
./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml
<?xml version="1.0"?>
<!--
/**
* Copyright info.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="catalog.topnav">
<block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
</referenceBlock>
</body>
</page>
Then use this template file to create link html.
./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml
<?php
/** @var MagentoFrameworkViewElementTemplate $block */
?>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("FAQ")?></span>
</a>
</li>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("Custom Designs")?></span>
</a>
</li>
When you clear the layout and block_html caches, these will show in the menu.
Note:
- This way we won't touch the original
topmenu.phtml
- This will use topmenu.phtml's
$block->getChildHtml()
to render the output - In layout xmls if you ignore the
class=""
attribute for a block, thenMagentoFrameworkViewElementTemplate
class will be used by default.
Hope that helps
add a comment |
Another alternative is to use a new template file via layout xml.
./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml
<?xml version="1.0"?>
<!--
/**
* Copyright info.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="catalog.topnav">
<block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
</referenceBlock>
</body>
</page>
Then use this template file to create link html.
./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml
<?php
/** @var MagentoFrameworkViewElementTemplate $block */
?>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("FAQ")?></span>
</a>
</li>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("Custom Designs")?></span>
</a>
</li>
When you clear the layout and block_html caches, these will show in the menu.
Note:
- This way we won't touch the original
topmenu.phtml
- This will use topmenu.phtml's
$block->getChildHtml()
to render the output - In layout xmls if you ignore the
class=""
attribute for a block, thenMagentoFrameworkViewElementTemplate
class will be used by default.
Hope that helps
Another alternative is to use a new template file via layout xml.
./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml
<?xml version="1.0"?>
<!--
/**
* Copyright info.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="catalog.topnav">
<block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
</referenceBlock>
</body>
</page>
Then use this template file to create link html.
./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml
<?php
/** @var MagentoFrameworkViewElementTemplate $block */
?>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("FAQ")?></span>
</a>
</li>
<li class="level0 level-top ui-menu-item">
<a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
<span><?= __("Custom Designs")?></span>
</a>
</li>
When you clear the layout and block_html caches, these will show in the menu.
Note:
- This way we won't touch the original
topmenu.phtml
- This will use topmenu.phtml's
$block->getChildHtml()
to render the output - In layout xmls if you ignore the
class=""
attribute for a block, thenMagentoFrameworkViewElementTemplate
class will be used by default.
Hope that helps
answered Jul 16 at 4:07
Dilhan MadurangaDilhan Maduranga
2032 silver badges7 bronze badges
2032 silver badges7 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f224971%2fadd-cms-page-link-category-menu-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck
– sami23
May 7 '18 at 13:08
magento.stackexchange.com/questions/123669/…
– Ravindrasinh Zala
May 10 '18 at 9:22