How to Edit Header Content of a Custom Theme on Magento 2.3
Please could someone help me out!
I want to edit the header content to either remove or hide the following sections:
-Compare
-The Store Switcher (ELLYANA STORE)
-The Language Selector (ELLYANA_EN ENGLISH)
I use a custom theme: Fastest Magento 2 Theme.
Thank you.
magento2.3.0
New contributor
add a comment |
Please could someone help me out!
I want to edit the header content to either remove or hide the following sections:
-Compare
-The Store Switcher (ELLYANA STORE)
-The Language Selector (ELLYANA_EN ENGLISH)
I use a custom theme: Fastest Magento 2 Theme.
Thank you.
magento2.3.0
New contributor
Please check my ans.
– Aasim Goriya
Dec 22 at 11:09
add a comment |
Please could someone help me out!
I want to edit the header content to either remove or hide the following sections:
-Compare
-The Store Switcher (ELLYANA STORE)
-The Language Selector (ELLYANA_EN ENGLISH)
I use a custom theme: Fastest Magento 2 Theme.
Thank you.
magento2.3.0
New contributor
Please could someone help me out!
I want to edit the header content to either remove or hide the following sections:
-Compare
-The Store Switcher (ELLYANA STORE)
-The Language Selector (ELLYANA_EN ENGLISH)
I use a custom theme: Fastest Magento 2 Theme.
Thank you.
magento2.3.0
magento2.3.0
New contributor
New contributor
edited Dec 22 at 9:52
New contributor
asked Dec 22 at 9:38
Austin Powers
185
185
New contributor
New contributor
Please check my ans.
– Aasim Goriya
Dec 22 at 11:09
add a comment |
Please check my ans.
– Aasim Goriya
Dec 22 at 11:09
Please check my ans.
– Aasim Goriya
Dec 22 at 11:09
Please check my ans.
– Aasim Goriya
Dec 22 at 11:09
add a comment |
2 Answers
2
active
oldest
votes
app/design/frontend/Codazon/fastest_grocery_gourmet/Magento_Theme/layout/default.xml
<body>
<referenceBlock name="store_language" remove="true"/> // To remove store language
<referenceBlock name="store_switcher" remove="true"/> // To remove store switcher
</body>
For the compare link, go to Stores>configuration> theme options> Product compare > Show compare page link in TopLinks area > No
Codazon doc
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
add a comment |
You can update your custom theme's header panel from below path.
Go to your Custom theme >> Magento_Theme >> Layout >> default.xml
from here you can move block or remove block from header, check below code for your reference.
/[magento-root-directory]/app/design/frontend/[your-custom-theme]/Magento_Theme/layout/default.xml
<body>
...
<move element="catalog.topnav" destination="header-wrapper" before="logo"/>
<move element="top.search" destination="header-wrapper" after="catalog.topnav" />
<move element="minicart" destination="header.links" />
<move element="store_language" destination="header.links" before="-" />
<move element="store.settings.currency" destination="header.links" after="store_language" />
<move element="header.links" destination="header-wrapper" after="logo"/>
......
<referenceBlock name="header.panel" remove="true"/>
<referenceBlock name="store_language" remove="true"/>
<referenceBlock name="header.links" remove="true"/>
...
</body>
Please try this and let me know if any issue.
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
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
});
}
});
Austin Powers is a new contributor. Be nice, and check out our Code of Conduct.
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%2f255559%2fhow-to-edit-header-content-of-a-custom-theme-on-magento-2-3%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
app/design/frontend/Codazon/fastest_grocery_gourmet/Magento_Theme/layout/default.xml
<body>
<referenceBlock name="store_language" remove="true"/> // To remove store language
<referenceBlock name="store_switcher" remove="true"/> // To remove store switcher
</body>
For the compare link, go to Stores>configuration> theme options> Product compare > Show compare page link in TopLinks area > No
Codazon doc
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
add a comment |
app/design/frontend/Codazon/fastest_grocery_gourmet/Magento_Theme/layout/default.xml
<body>
<referenceBlock name="store_language" remove="true"/> // To remove store language
<referenceBlock name="store_switcher" remove="true"/> // To remove store switcher
</body>
For the compare link, go to Stores>configuration> theme options> Product compare > Show compare page link in TopLinks area > No
Codazon doc
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
add a comment |
app/design/frontend/Codazon/fastest_grocery_gourmet/Magento_Theme/layout/default.xml
<body>
<referenceBlock name="store_language" remove="true"/> // To remove store language
<referenceBlock name="store_switcher" remove="true"/> // To remove store switcher
</body>
For the compare link, go to Stores>configuration> theme options> Product compare > Show compare page link in TopLinks area > No
Codazon doc
app/design/frontend/Codazon/fastest_grocery_gourmet/Magento_Theme/layout/default.xml
<body>
<referenceBlock name="store_language" remove="true"/> // To remove store language
<referenceBlock name="store_switcher" remove="true"/> // To remove store switcher
</body>
For the compare link, go to Stores>configuration> theme options> Product compare > Show compare page link in TopLinks area > No
Codazon doc
answered Dec 22 at 12:21
PЯINCƏ
7,64621136
7,64621136
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
add a comment |
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
Thank you so much this worked perfectly, although for the compare link I had to go to Codazon>fastest options>theme options> Product compare > Show compare page link in TopLinks area > No
– Austin Powers
Dec 22 at 14:27
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
The Store Switcher and Language Selector is still visible in the mobile version of the site how do I remove from there too? Thank you.
– Austin Powers
Dec 22 at 17:06
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
About the mobile, it depends to your theme developpement, you have to find the 2nd block that display it for the mobile then, you remove it, it's is not a Magento standard, you can accept the answer if it helped you. Good luck
– PЯINCƏ
Dec 22 at 19:22
add a comment |
You can update your custom theme's header panel from below path.
Go to your Custom theme >> Magento_Theme >> Layout >> default.xml
from here you can move block or remove block from header, check below code for your reference.
/[magento-root-directory]/app/design/frontend/[your-custom-theme]/Magento_Theme/layout/default.xml
<body>
...
<move element="catalog.topnav" destination="header-wrapper" before="logo"/>
<move element="top.search" destination="header-wrapper" after="catalog.topnav" />
<move element="minicart" destination="header.links" />
<move element="store_language" destination="header.links" before="-" />
<move element="store.settings.currency" destination="header.links" after="store_language" />
<move element="header.links" destination="header-wrapper" after="logo"/>
......
<referenceBlock name="header.panel" remove="true"/>
<referenceBlock name="store_language" remove="true"/>
<referenceBlock name="header.links" remove="true"/>
...
</body>
Please try this and let me know if any issue.
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
add a comment |
You can update your custom theme's header panel from below path.
Go to your Custom theme >> Magento_Theme >> Layout >> default.xml
from here you can move block or remove block from header, check below code for your reference.
/[magento-root-directory]/app/design/frontend/[your-custom-theme]/Magento_Theme/layout/default.xml
<body>
...
<move element="catalog.topnav" destination="header-wrapper" before="logo"/>
<move element="top.search" destination="header-wrapper" after="catalog.topnav" />
<move element="minicart" destination="header.links" />
<move element="store_language" destination="header.links" before="-" />
<move element="store.settings.currency" destination="header.links" after="store_language" />
<move element="header.links" destination="header-wrapper" after="logo"/>
......
<referenceBlock name="header.panel" remove="true"/>
<referenceBlock name="store_language" remove="true"/>
<referenceBlock name="header.links" remove="true"/>
...
</body>
Please try this and let me know if any issue.
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
add a comment |
You can update your custom theme's header panel from below path.
Go to your Custom theme >> Magento_Theme >> Layout >> default.xml
from here you can move block or remove block from header, check below code for your reference.
/[magento-root-directory]/app/design/frontend/[your-custom-theme]/Magento_Theme/layout/default.xml
<body>
...
<move element="catalog.topnav" destination="header-wrapper" before="logo"/>
<move element="top.search" destination="header-wrapper" after="catalog.topnav" />
<move element="minicart" destination="header.links" />
<move element="store_language" destination="header.links" before="-" />
<move element="store.settings.currency" destination="header.links" after="store_language" />
<move element="header.links" destination="header-wrapper" after="logo"/>
......
<referenceBlock name="header.panel" remove="true"/>
<referenceBlock name="store_language" remove="true"/>
<referenceBlock name="header.links" remove="true"/>
...
</body>
Please try this and let me know if any issue.
You can update your custom theme's header panel from below path.
Go to your Custom theme >> Magento_Theme >> Layout >> default.xml
from here you can move block or remove block from header, check below code for your reference.
/[magento-root-directory]/app/design/frontend/[your-custom-theme]/Magento_Theme/layout/default.xml
<body>
...
<move element="catalog.topnav" destination="header-wrapper" before="logo"/>
<move element="top.search" destination="header-wrapper" after="catalog.topnav" />
<move element="minicart" destination="header.links" />
<move element="store_language" destination="header.links" before="-" />
<move element="store.settings.currency" destination="header.links" after="store_language" />
<move element="header.links" destination="header-wrapper" after="logo"/>
......
<referenceBlock name="header.panel" remove="true"/>
<referenceBlock name="store_language" remove="true"/>
<referenceBlock name="header.links" remove="true"/>
...
</body>
Please try this and let me know if any issue.
edited Dec 22 at 11:11
answered Dec 22 at 10:34
Aasim Goriya
2,4741733
2,4741733
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
add a comment |
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
Thank you so much this was very very helpful, I used Prince's answer it was very pin point. Thanks I am grateful for your response to my question.
– Austin Powers
Dec 22 at 14:32
add a comment |
Austin Powers is a new contributor. Be nice, and check out our Code of Conduct.
Austin Powers is a new contributor. Be nice, and check out our Code of Conduct.
Austin Powers is a new contributor. Be nice, and check out our Code of Conduct.
Austin Powers is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f255559%2fhow-to-edit-header-content-of-a-custom-theme-on-magento-2-3%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
Please check my ans.
– Aasim Goriya
Dec 22 at 11:09