Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
1
vote
1answer
3k 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
4k 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/...
0
votes
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
511 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
64 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
277 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
37 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
872 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
357 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
451 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
207 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
218 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
408 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
271 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
833 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
90 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
825 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 ...
1
vote
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
224 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
601 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
561 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
1k 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
2k 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
773 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
288 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
574 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
227 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
358 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
310 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
8k 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
vote
0answers
41 views

Use Magento header and footer on a webpage inside Magento root Directory in Magento2

I have a working web page which includes HTML and javascript. I want to use Magento Header and Footer on that webpage. Supposing that I kept that web page inside the Magento root directory, What is ...
0
votes
1answer
650 views

Magento 2: Disable default header and add custom header content

I have created a custom header container and placed inside app/design/Foo/bar/Magento_Theme/templates/html/header.phtml Now the content I need is showing up, but also displaying default header ...
3
votes
1answer
218 views

Magento 2.1.1 how to add version number to css

I want to add ?v=20170721 after css file http://example.com/pub/static/_cache/merged/91eeca7a8ffa88b106ef85bd3a665d93.min.css?v=20170721 I tried to set "yes" in sign static files but this is not ...
0
votes
1answer
54 views

How do I get rid of multiple H1's on homepage?

I am relatively new to Magento with past experience of WordPress of few years. I'm trying to get rid of the multiple H1s on the homepage of a new client. sobefurniture.com The developer coded the ...
0
votes
1answer
249 views

Magento Admin Header above phtml Content?

Currently in the Admin Panel my custom phtml page is under the header: app/code/local/Sean/MasterCreate/Block/Adminhtml/Warehouse/Display.php <?php class ...
0
votes
1answer
997 views

Customize header logo link via the admin

I am working with a custom theme in Magento 2.1. I would like site administrators to be able to set the header logo's link via the admin config. This link would then be used in app/design/frontend/...
0
votes
1answer
848 views

Refresh header.phtml on click on add to cart button

I am making a Free Shipping top bar, i have added code in header.phtml which is located in app/design/frontend/mytheme/mytheme05/template/page/html/header.phtml My Code is : <div id= "um" class="...
1
vote
1answer
194 views

Magento 2 Header Search Border on Focus

How can i set disable the glowing blue border on focus from the Header Search (minisearch)?
0
votes
3answers
517 views

How can I overwrite vendor/Magento/framework/View/Element/Html/links.php file?

How can I override following function?? protected function _toHtml() { if (false != $this->getTemplate()) { return parent::_toHtml(); } $html = ''; ...
1
vote
2answers
422 views

how to remove header links class with ul tag in magento 2?

I'm on Magento 2.1.6. The header links are rendered with this structure: <ul class="header links"> <li>...</li> <li>...</li> ... </ul> My HTML structure is ...
2
votes
1answer
165 views

Magento 2.1.6 - How to setup email templates header and footer

I am new in Magento 2x. I just want to setup email header and footer globally. I can't locate either header.html / footer.html files in my Magento file systems as well. Also in "Marketing/Email ...
0
votes
1answer
500 views

Customize magento 2 theme

I installed magento 2 and successfully implemented custom theme. I used magento blank as my theme's parent theme. I'm new to magento, so this may seem like a stupid question, but please help me ...
1
vote
2answers
12k views

Magento 2 : How to Create Custom Header and Footer

I am creating new header.phtml and footer.phtml and store into app/design/frontend/<vendor_theme>/mytheme_name/theme_layout/template/html. so how to add new header and footer in magento/blank ...

1 2
3
4 5
7