Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [header]

Denotes Question related to header part of magento.

1
vote
0answers
11 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 ...
4
votes
0answers
60 views
+50

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 header and ...
1
vote
1answer
49 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
34 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
29 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
47 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
15 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
29 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
28 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
15 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
31 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
24 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
130 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
94 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
56 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
34 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
33 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
46 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
126 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
1answer
279 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
103 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
116 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
147 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
127 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
104 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
336 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 ...
3
votes
2answers
218 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
130 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
194 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
141 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
373 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
24 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
394 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
64 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
567 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 ...
1
vote
0answers
28 views

Magento 2.1 : How to create dynamic custom header link without using cacheable = false

The cacheable = false works fine, but fpc gets completely disabled and pages are too slow. Here is the default.xml <referenceContainer name="header.panel"> <block class="Custom\Mod\...
0
votes
0answers
35 views

customer name shouldn't display after rebooting the system

Steps to reproduce. login as a user close the tab without logged out restart the system open brower and open magento local see the welcome message ACTUAL RESULTS - Welcome!User name! - Sign in - ...
1
vote
0answers
51 views

Magento 2 : How to remove signout from my account section at header?

While customer logged into account it is showing two sign-out from header Kindly check the below default.xml file from my custom theme. Can you please suggest ? Actually I have used parent theme as ...
0
votes
1answer
234 views

How I add my Header and footer in my magento 2 theme [duplicate]

I am new fresher and start Magento 2 development I have created a Magento 2 theme and I have created a custom header and footer how I add my custom header footer in Magento 2 theme this is my theme ...
2
votes
0answers
52 views

Magento 2 :Header section modifications

I'm trying to understand how the entire header section is put together, and wanted to move some things around just to try to understand how Magento is putting everything together. How could I ...
0
votes
2answers
268 views

How to change the contents in the header of Magento 2 [duplicate]

I have attached the screenshots images of my store and the model how it should appear. I have to change according to that. can anyone please help how to change or customize the header of the magento 2....
3
votes
6answers
1k views

Reorder Top Links

I have been stuck on this task all day. I am hoping someone has some insight or is this a bug? I have tried a few different approaches and nothing seems to actually work. This is how it currently ...
0
votes
1answer
24 views

How to add custom link in header in magento 2 [closed]

How to add custom link (on custom module, not at theme) at header in magento 2
0
votes
1answer
462 views

How to show currency flag and code on top header in magento

My code is <?php if($this->getCurrencyCount()>1): ?> <div class="header_currency"> <div class="currency_box"> <div class="currency_pan"> <i class="...
1
vote
1answer
108 views

After upgrade magento 2.1.11 => 2.2.3, I got below error how to fixed it

Notice: Undefined index: src in /vendor/magento/framework/View/Page/Config/Generator/Head.php on line 125 How to fix it. please reply. Thanks
0
votes
1answer
50 views

Change magento 1 header on mobile

Currently my /template/page/html/header.pthml contains twice the topMenu. This because we load an entire different inner html for mobile, instead of the desktop version. But this also means that the ...
0
votes
2answers
124 views

Completely removing the <ul> element at the top that page

I am new to Magento, and am modifying Magento 2.2. There is a element at the top of the page which I cannot get it removed. This is what I have already done: I have tried to remove the content ...
1
vote
0answers
115 views

How to create custom header in magento 2

I am looking for a Header similar to the one depicted in the below link https://www.screencast.com/t/URbo3HmN My default.xml: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
2k views

Magento 2.2.2 - Remove default welcome message and show username post login

I need to remove default welcome message from header but display username after successful login. Tried below to hide welcome message but it also removes username after login <referenceBlock name="...