Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [header]

Denotes Question related to header part of magento.

0
votes
1answer
14 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
10 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
28 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
5 views

setcookie() issues on running with HTTPS on WordPress [migrated]

I have set 2 custom cookies to be saved when user clicks a button that runs the script to save the cookies. The issue is that I need these to be saved through HTTPS because I am using them on a store ...
0
votes
0answers
20 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
2answers
50 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
36 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
30 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
30 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
0answers
15 views

How to allow header logo to take more than 50% of header width in the Luma and blank themes?

The 'logo' for my page consists of a graphic and then a long company name, so I want it to use a lot of the width in the header. The logo image is 1280 pixels wide, and I set its attributes as 1280 ...
0
votes
0answers
84 views

Magento 2 Add Serchbox in header

I need to add a searchbox in the header. With file structure details explained. Thank you
0
votes
1answer
40 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
114 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
183 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
93 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
105 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
108 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
112 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
62 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
233 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
150 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
117 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
158 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
101 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 ...
0
votes
0answers
299 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
23 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
143 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
54 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
394 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
31 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
45 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
179 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 ...
0
votes
0answers
26 views

magento 2 footer and header issue on category page

On my category page footer and header are missing, (I m using magento 2). Does anyone knows how to fix it?
2
votes
0answers
51 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
91 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
860 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
428 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="...
0
votes
0answers
67 views

magento 2 - header links drop down menu with customer name

does anyone know how I get the customer full name for my header drop down menu below? anything I tried so far is a disaster. <link rel="stylesheet" type="text/css" href="<?php echo $block->...
1
vote
1answer
104 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
42 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
111 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
89 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
1k 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
0answers
15 views

Blocks and widgets

I'm building my website using theme template in magento 2. I edited all categories,But in my homepage I don't see category or menu anywhere. how do i add or edit to show on top of my header slide? how ...
0
votes
1answer
826 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
0answers
24 views

Include search box in header.phtml in Magento 2.2.0

I have created header.phtml where I need to include Search box. I have removed searchbox from its default position by using below code in default.xml : <move element="minicart" destination="...
0
votes
2answers
2k 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\...