Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
1
vote
0answers
57 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
51 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 browser and open magento local see the welcome message ACTUAL RESULTS - Welcome!User name! - Sign in - ...
1
vote
0answers
129 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 ...
1
vote
1answer
765 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
63 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
5k 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
5answers
4k 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
33 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
792 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
155 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
171 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
225 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
392 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:...
1
vote
1answer
4k 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="...
0
votes
1answer
5k views

How to fix “Cannot send headers; headers already sent” error in magento version 1.9.3.3?

a:5:{i:0;s:147:"Cannot send headers; headers already sent in /home/abc/public_html/app/code/core/Mage/Catalog/Model/Category/Attribute/Backend/Image.php, line 1";i:1;s:1783:"#0 /home/waterc/...
1
vote
2answers
3k views

Magento 2.2 how to change header link create an account text to icon

I want to change create an account text to icon. I can find the layout file under var\www\html\vendor\magento\module-customer\view\frontend\layout\default.xml <block class="Magento\Customer\...
0
votes
1answer
593 views

Header and footer in Magento 2.2.0

I am new to magento 2.I want to use custom header and footer design for my site but don't where to keep that code. I am using blank theme. Please help me. Thanks in advance.
1
vote
0answers
66 views

Magento 2 top header currency code

How to remove the Links at the top header ie. sign in, create account and currency change and want to place it custom page(only currency selector). Please someone tell me how to do that.
0
votes
1answer
407 views

How to add Two Header and Two Footer for Multi-Store

I have used the same theme for my multi-store, I need to change header and footer completely for my second store. How can add 2 headers and 2 footers for my multi-store?
3
votes
0answers
40 views

How to use symbolic(symlinks) files in root directory - Change header and footer for second store

I have created symbolic(symlinks) files for multi-store, how can i change the header and footer for my second store?
1
vote
1answer
1k views

Add Custom Header Link in Magento 2 - Not Working

Here's my code: default.xml file in app/code/Demo/Mymodule/view/frontend/layout <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
1k views

Add script in header in checkout page

I want to add some custom JavaScript in the header of the checkout page. I tried to follow the layout structure.. I created a module and places my custom JS file is in app/code/Roman/hello/view/...
1
vote
1answer
491 views

change magento categories header color

i am using a magento theme and want to change the categories header color. is there any custom css code or method to change the same ? ( image attached )
1
vote
1answer
582 views

magento2: How to swap two elements in header

I am new in magento and I am creating a custom theme for Magento 2. I try to swap two elements, header wrapper and header content. Default header: I'm trying to get this: I create file frontend/&...
1
vote
1answer
1k views

How to change a search input box into a search icon as in mobile view

How to have a search icon in the place of search box in the header, once the search icon is clicked the search box has to drop down, can some one help me how to do it
0
votes
0answers
32 views

How to have a single line header

I want to have a single line header in my magento 2 site I'm using the default luma theme, can some one help me with this?
1
vote
0answers
258 views

Magento2: custom header.phtml stays cached forever!

I have a child theme, and uploaded a custom header: header.phtml. Right after I uploaded, it showed it correctly in the front-end. However, changing something in this custom header, never reflects ...
-1
votes
1answer
234 views

Wanted to change my account text to icon in header

I've updated to magento 2.2.1. I want to change my account and create an account text to icons, I found the text in default.xml, so can some one let me know how to change the text to an icon
0
votes
1answer
471 views

Meta Tag's + OG + Twitter Card

I added the following code to the head <meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" /> <title><?php echo $this->getTitle() ?></...
0
votes
1answer
316 views

Editing my child theme

I've created a child theme by adding files to C:\xampp\htdocs\magento\app\design\frontend\Magento\themename In this, I have a theme.xml file, a registration.php file, web folder, media folder and a ...
4
votes
1answer
1k views

Magento 2: How to disable caching for the header block?

I just go through other similar questions but they didn't help much. As per suggested in some answers to put the cacheable="false" in block will disable it. But it will disable whole page caching as ...
0
votes
0answers
103 views

Hide My Account dropdown menu

I tried to hide the My Account menu from the dropdown when variable in my session is 0. I already could save my variable to the session, but i can't find the phtml to hide the My Account menu in top ...
0
votes
2answers
892 views

How to add title to header without breaking search box

I am creating a theme for magento 2.2. Created my first custom block in app/frontend/CUSTOM VENDOR/CUSTOM THEME/Magento_Theme/templates/heading.phtml containing the following code: <?php //create ...
2
votes
2answers
2k views

How to Get Top Menu in Header as dropdown in Magento 2

Want to show top links as "DROPDOWN" in custom theme. Trying from many days but still no success. Have to show "Sign In/Up" Link in toplinks when customer is not logged in. After Customer Logged In "...
0
votes
1answer
276 views

Seeing duplicate cookie response headers

When looking at the request headers for my Magento 1 site I can see it has 2 cookie request headers. Set-Cookie:frontend=3dt1aedashghghg1vr9ua0tghms7; expires=Fri, 20-Oct-2017 07:52:20 GMT; Max-Age=...
1
vote
0answers
759 views

Remove a link tag in head tag

I never used Magento and a client of mine asked me to remove an unwanted google adsense in his website. While inspecting, I got this: <link rel="preload" href="https://adservice.google.com.br/...
1
vote
0answers
690 views

header my account dropdown not showing magento2.1

I have been trying to add my account drop down menu in my magento website. I found that it is there in luma theme by default. But my base theme is magento/blank. My account links are displayed in a ...
0
votes
3answers
2k views

How to display customer name in header after logged in

How can I display customer name in the header after logged in successfully?
4
votes
2answers
3k views

How to remove class `page-header` of tag `header` in Magento2?

How to remove name css page-header in tag header ? How to remove tag <div class="panel wrapper"> or <div class="panel header">in Magento 2?
2
votes
2answers
935 views

Magento 2 adding navigation bar in checkoutpage

I am developing a custom theme in magento 2.1.7. Everything goes fine till I reached checkout page. There were no header and footer found in checkout page. It seems like magento 2's default behavior. ...
1
vote
1answer
35 views

how to call custom block in magento

How to call custom block in header any help will be appreciated . <referenceBlock name="logo"> <block class="Magento\Cms\Block\Block" name="help"> <arguments> ...
1
vote
1answer
315 views

magento 2.1 custom theme header minicart layout overriding not working

I am building a new theme in magento 2.1. I need to override the default header minicart of magento 2.1. For that I had copied vendor\magento\module-checkout\view\frontend\web\template\minicart\...
1
vote
1answer
836 views

How do I add a template into the header panel? Magento-2.1.7 Porto Template

I created the modified default.xml and created headerContent.phtml to add new content to the header panel to be position on the opposite side of the login and welcome msg. However, after uploading, ...
0
votes
2answers
241 views

Layout is not calling correctly

I am creating a custom module, everything is working fine but on view page, My phtml file calling first and then header is coming. I am calling and setting data like this : IndexController.php ...
0
votes
2answers
397 views

How to add category on the checkout header on magento 2

I was able to add my header on the checkout page and payment page by adding this code in Magento_checkout/layput/checkout_index_index.xml : <?xml version="1.0"?> <page xmlns:xsi="http://www....
0
votes
1answer
364 views

Magento 2: How to wrapper link in new div?

I need wrapper into a new div the block help create in the header.panel. I wrapped the block header-links in the new div and work, but the link custom doesn't wrapper in other div. This is the code ...
0
votes
2answers
45 views

How to add a custom link to header but not in the top links

In my custom module, I want to add a custom link in the header, but not within the top links. I can't edit the header.phtml. I prefer add link through layout http://i.prntscr.com/...
0
votes
2answers
42 views

Header Customization

I need to make a header like attached any help will be appreciated can some one guide me how to achiev that step by step because I am new in magento Using Mangento 2.1.7 Thank you
2
votes
3answers
1k views

Magento 2: header links missing from checkout pages

In Magento 2, the "header links" element (top.links) is missing on checkout pages. I'm using a custom theme with Magento/blank as the parent. I have added custom links to my theme at app/design/...
4
votes
1answer
10k views

Magento 2: Add block above page-header

I tried to add a simple div into my Magento 2 theme. I've added this code to /app/code/design/frontend/MyCompany/MyTheme/Magento_Theme/layout/default.xml <page xmlns:xsi="http://www.w3.org/...

1 2
3
4 5
7