Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

How to execute a section only when user is logged in else skip the section?

I have this piece of code in a phtml file. How can I change the code so that if user is not logged in the code will not execute else it will execute. <?php if ($accountLinksHtml): ?> <div ...
0
votes
1answer
24 views

Hide toggle link for logout in header magento2

Once logged in customer name will be shown with arrow beside it. After clicking arrow a logout link appears. My requirement is to remove that click action. Directly can we show Logout link in ...
0
votes
1answer
39 views

Magento 2 : theme

How can we add custom text before welcome massage at panel wrapper? Note: i don't want to display link, I just want to display plain text there.
0
votes
0answers
24 views

M2 css/less priorities

CCS styles in M2 locates in two CSS files: style-m and style-l. I should use & when (@media-common = true) mixin to put styles just to style- m and they will work for both mobile and deskop ...
0
votes
1answer
32 views

How to add Header links to category section?

How to add Header links to category section? i have some header links like new category , Brand , Contact Us. i have to show this header links in Main category section also.
2
votes
1answer
55 views

Magento 2: Customer name not display in programmatically logged in user account

I have programmatically logged into the customer accounts from my custom controller. In this case the customer name is not loading in the header. https://prnt.sc/nzucg9 How can I do it? Here is the ...
2
votes
1answer
25 views

Move cart icon to after login/account

I have been trying to move the cart within the top header, though its appearing in the incorrect sequence. I would like this to appear after Create Account <move element="minicart" destination="...
1
vote
1answer
17 views

Add an Element on the top of header.panel.wrapper

I need to place an element ot the most top of page. the position is exactly on the top of header.panel.wrapper. My objection is to have some elements on the the most top of header. Any help ...
0
votes
1answer
28 views

Customer information not displayed in header after login

I am logged in my local machine as customer and magento header not displaying the name of logged in user. I am also tried to add product but cart is empty. Give me your suggestions to resolve this ...
0
votes
0answers
12 views

How can I set header images sizes on Magento 2 and what is it recommended size?

I set almost every size but it did not come to mark! Will anyone recommend me their solution Look the attached Image.
2
votes
1answer
50 views

How to make categories pages wise different headers and footer in magento 2.3.1?

Want to make categories pages wise different header and footer in magento 2.3.1 example like have 4 categories so want make 4 different header and footer that make maintain end of them.
3
votes
1answer
122 views

Defer JS / CSS Magento 2 via layout files?

After reading a lot of devdocs, I can see there is a case for deferring in CSS and JS in the manual https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-types.html#layout-types-...
0
votes
0answers
22 views

How to override the headers and footers of default theme using html and css?

I wanted to customize the headers and footers of the custom theme using html and css,I needed to change the structure of the headers. Is it possible, If so how ?
0
votes
1answer
39 views

how to check customer logged in or not in cms block page in magento 2

i have cms custom header page i want to check when click on (custom header) it will check customer logged in or not i already try this $objectManager = \Magento\Framework\App\ObjectManager::...
1
vote
0answers
17 views

Render full header from API

I need to pass the whole header to another website through an API. Do not ask why, this is the task. I asked some help from one of my colleague, he suggest me to create a controller, what has a ...
6
votes
0answers
209 views

Header and footer in an external file

I'm using an index.php file under /pub/custom folder, which is used to create custom designs. This file is completely written in html and javascript. Is there any way to include current theme ...
1
vote
1answer
60 views

Magento 2 : How to show a menu in header part?

I want to show a menu in header part in magento 2? please help me how to add in header part?
0
votes
1answer
166 views

How to change the links of header menu in magento 2?

`How to change the links of this this menu Register here links in my account menu any ideas
0
votes
0answers
34 views

Magento 1.x Default menu not showing

Have some problem with default menu on my testing and practice local host. Here is the problem created few just test subcategories and they are not shown at all in case nothing is shown. For this I ...
1
vote
1answer
81 views

How add a country selector in the header section?

I need add a country selector in the header section, next to the currency selector. How is the right way to do this? Edit: I realized that there was not much information in my question, so it was ...
0
votes
1answer
16 views

In Magento 2.2.5, custom login link is showing login even customers logged In

In Magento 2.2.5, I have used the custom phtml file in app/design/frontend/vendor/theme/Magento_Theme/templates/html/topmenu.phtml to add the customer header links with following code. But it is ...
0
votes
1answer
125 views

How to use customer token to access my account Query or Mutation in GraphQl

I am using magetno 2.3.x and I want to access my account queries provided by Magento_CustomerGraphQl module. I have installed ChromeiQl to execute GraphQl. I set Site Endpoint as per syntax provided ...
0
votes
1answer
90 views

magento 2 how to edit custom header in site which path i can edit

here is the code for custom header <div class="message global demo"> <div class="content"> <p>This is demo store. No orders will be fulfilled.</p> ...
0
votes
0answers
17 views

CSS & navbar edits for a Magento noob - ver. 2.2.6

I need to make a few simple changes to an existing Magento site, and although I have some wordpress experience, my Magento is currently 0. It's using a theme called Smartwave Porto, and the changes ...
1
vote
0answers
41 views

how to display the customer name after confirming via email in magento 2

When confirming account via email getting this, it is not showing customer name but it's shows only when I logged in (displaying customer name) . I want to show customer name after confirming ...
0
votes
0answers
31 views

Unable to apply changes to design configuration header/footer, magento 2.2.7

Running magento 2.2.7 Attempting to change footer copyright as well as add a style sheet under the html head. (under content->configuration) No changes of any sort are being saved when save ...
0
votes
1answer
353 views

Cannot modify header information - headers already sent by

I'm using Magento 2.2.7 CE with Porto theme and seem to be randomly finding the following error in the var/report folder: {"0":"Warning: Cannot modify header information - headers already sent by (...
0
votes
2answers
323 views

Magento2.2.5 change create account link in top right header

I want to change the URL of the "create An account" link that is on the top right of the site. I want the link to instead of being customer/account/create/ I want it to be customer/account/login I ...
0
votes
1answer
92 views

Magento2: How to put logo in other location

I want to put logo here: [![enter image description here][1]][1] Here is code header: <?php $welcomeMessage = $block->getWelcome(); ?> <div class="header-container header-style-20">...
0
votes
3answers
48 views

Magento 1.9 header ISSUE

Have some strange header.phtml error. Problem is non my index page everything is ok, and on any other page have some weird problem my header and menu change places. code for my current header.phtml ...
-1
votes
2answers
116 views

How i can change header button (sign in to log in) in magento 2 ? and which file i can change?

[![enter image description here][1]][1] Which file i can change .xml or .phtml file Sign in to Log in where the location of files....
0
votes
0answers
17 views

Magento 2 : Search, Mini cart and menu disappear from website

I have Magento 2.1.7 store and it was working properly since last 3 months. But yesterday Search, Mini cart and menu disappear from website ,there is no error log for this. I didn't find how to fix ...
0
votes
1answer
75 views

magento2: how to put widget (slider) in header?

could anyone advise me how to put widget (slider) in header just next to logo? (as on screenshot below)? Widget is ready and prepared by TemplateMonster extension, i just want to move it upstairs, ...
0
votes
1answer
128 views

Magento 2: Multi website session issue

I am a beginner to magento and I have created a magento 2 multi-website and the URL looks like http://127.0.0.1/testproject/ and http://127.0.0.1/testproject/test. On these websites, while I have ...
0
votes
2answers
449 views

Magento 2 : How to move the search box next to logo title [SOLVED]

I'm using Magento 2 and trying to change the header part of the theme. I want the search box next to the logo Title "Electro store" as shown in image also i want to know how to change the css of ...
0
votes
1answer
105 views

I am not able to reflect the contents added in html head of admin panel in view source code in magento 2

I have added few script tags in the following path of admin panel: content->design->configurations->our theme(edit)-> html head->scripts n style sheets. But it's not reflecting in view page source ...
2
votes
1answer
122 views

How add top-header above main menu?

How can I add top-header above main menu? I need top-header with text above main menu
2
votes
3answers
237 views

How to add a background image to header content?

It's been last 42 hours i am trying to get a background image to header content on luma! [magento 2] but nothing getting accurately!! how do i add a background image to header content on magento luma!...
0
votes
1answer
133 views

Customize and display navigation on the top right of header

I'm working with Magento 2.2.5 i want to move navigation menu to the top right of header. also i want to know which file i can edit to customize navigation menu Thanks. UPDATE : I want my headr to ...
0
votes
1answer
188 views

Moving content of custom header Magento 2

I created a custom header and called it in the default.xml this is the code <referenceContainer name="header.container"> <block class="Magento\Framework\View\Element\Template" name="...
0
votes
2answers
565 views

Remove Default header and create new one with menu and search bar

I created a new block with HTML and CSS from Admin Panel in Magento 2.2.5. I want to display this block as a header of my store, so I want the method to remove or hide the default header and also how ...
4
votes
2answers
417 views

How to create custom header in magento 1.9

I want to create the custom header in Magento 1.9. I attached the screenshot of the header like this I have tried the following code. I have created the static block and static block calling in ...
1
vote
1answer
139 views

How to override Email Header and Footer through module in Magento 2

I want to override magento email template file. app/design/frontend/Vendor/themename/Magento_Email/email/header.html app/design/frontend/Vendor/themename/Magento_Email/email/footer.html
1
vote
1answer
225 views

How to add last modified into header

How to add last modified product date to product page header and last modified category date to category page header?
0
votes
2answers
236 views

How to set header in magento2 controller function?

I am trying to create a ICS file, core php I wrote the code like this - include 'ICS.php'; header('Content-Type: text/calendar; charset=utf-8'); $ics = new ICS(array( 'location' => '123 ...
1
vote
0answers
467 views

Display sub category image in top menu - Magento2

I want to display sub-category images in the top menu. I used this but does not show it sub-category images. Create your module Create a folder in app/code/Vendor/NavigationMenu, where ‘vendor’ is ...
0
votes
0answers
28 views

magento 2.1 header is visible on checkout page

I am working on Magento 2.1.10. Header and footer are visible at my checkout page. I don't know where I am wrong. One thing that I can confirm is I did't override any checkout layout file to display ...
1
vote
2answers
1k views

Magento 2 : How to Add Custom Header

I am trying to add a custom header in Magento 2. I am creating my custom theme and add custom header page customeheader.phtml but header is not show.
3
votes
0answers
86 views

After logout, customer name still shows in header beside Sign In link

The login user session is expired but in the header, the customer username is showing as logged in. Please help me to resolve this.
0
votes
1answer
902 views

how to add currency switcher dropdown in magento2 custom header

I created custom header using below link. http://oxsoftwares.com/add-custom-header-in-custom-theme-magento2/ I want to add currency switcher inside the custom header, how can we call currency ...