Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

Where is the HTML file relating to the line of options below the search bar?

I am trying to add/remove a few links from this line in the header. However, the code is not a block, and so is not available through the backend. Each part is its own block, and though I found the ...
0
votes
1answer
17 views

Magento2.3: Welcome message is not displaying correctly

The welcome message is not displaying once the customer logged in to the website and its only displaying after 20 sec, sometimes it's taking even 5 min to display. Is that because of performance ...
0
votes
1answer
44 views

How can I build this header?

I'm trying to get the header to look a little like this: I'm having a hard time with the search and mini cart buttons, it seems they're nested within header-wrapper by default and I can't seem to ...
0
votes
3answers
74 views

How to get Email address in my phtml file in magento 2

I want to display email address stored in backend into my header part. How can i get email address into my header.phtml file in magento2
0
votes
3answers
31 views

How to move existing links and add new custom links in top header?

I already check many answers regarding the move header.links to header-wrapper its working but the problem is that it also move my custom links to header content. I am trying to create a new ...
0
votes
1answer
28 views

Add custom link near search box in Magento 2?

I already check many answers regarding move header.links to page.top its working but the problem is that its also move my custom links to header content. that's why I remove greeting message, Sign in,...
1
vote
1answer
44 views

Magento 2 : How to move register-link next to minicart?

I want to move the Create An Account button, near the mini cart in the header section.
1
vote
3answers
49 views

Product View Page Header and Footer part is not Showing In Magento 2

On the website, home page header and footer showing but product page not showing header and footer part. How to fix it?
0
votes
3answers
37 views

Magento2.3: How to set the border bottom for whole header?

I have a megamenu in header and want to set the border bottom for the whole header and it should be aligned with the megamenu border but its not working as expected. I have tried that into the ...
0
votes
0answers
20 views

Magento2.3: How to make a sticky header?

I have tried to make a sticky header but no success. I have followed many posts regarding this but none of them is working for my case. I have followed below link. Fixed Headers in Magento Any help ...
3
votes
2answers
67 views

Header Links showing twice under the Account Links in Mobile Menu Magento 2

I am getting Header Links twice under the Account Links in Mobile Menu. I have attched screenshot of that. You can see in the image there is twice header links under account tab. I'm using porto theme ...
0
votes
1answer
29 views

Magento 2.3.3 - Changing default header size for an image

First of all, I'm fairly new to Magento. And my question is how do I change the default header size for an image? The site I'm working on is upgrading from Magento version 2.3.2 to 2.3.3. And in ...
0
votes
0answers
14 views

Toggle Span for mobile menu is missing

I've created custom theme, but my problem is the toggle menu button is missing in mobile view. I tried to copy pasta the element from mage default theme, but its not working. How can I get the mobile ...
1
vote
1answer
56 views

Not able to move “Porto” theme top links under header content (After search) in Magento 2.3.2

I am using Porto theme (header Type 1) with Magento 2.3.2 setup. I want to move Top Links section elements i.e : Sign in, Currency etc under the header content after the mini search bar. Here is the ...
0
votes
1answer
51 views

How to show My Account link in frontend after succesfully logged in?

How can I show the My Account in header after the welcome message after successfully logged in my website? I have got help in displaying them on customer menu but now I want to show it in header ...
0
votes
0answers
18 views

Magento 2 match header search layout for mobile and desktop

I'm wondering if there is a way to replace the desktop header search element (search input box) with the way it is implemented in mobile (show only a search icon, and when you click it the search ...
0
votes
0answers
17 views

Struggling in getting the category image in mega menu

We have customised our own mega-menu for our site. I can display the parent category, sub category and sub-sub category but not able to display the parent category image. I want show like below: ...
0
votes
1answer
25 views

Add custom header link in custom theme

I am trying to add custom header link, but it is not showing.
0
votes
2answers
34 views

How to reate two different headers for desktop and mobile using xml?

I want to create two headers one for desktop and other for mobile. How can I achieve this, do i need to edit default.xml or need to add some conditions to meet the requirements ?
1
vote
1answer
158 views

magento 2.3 add store view switcher in custom header template

I have two store views for two languages english and spanish in magento 2.3 EE. The english store is default one and I want to add store view switcher drop down in my custom header template. How to ...
1
vote
1answer
17 views

Finding and changing text under logo 1.9 ce

I have existing text under my logo in magento im having trouble finding where to edit this, under the source code its showing the text is under div class="header_content". I tried looking in the ...
0
votes
0answers
12 views

Design a header with logo, nav-links and cart in one line

I want to design a header by extending the Luma theme. I have attached pic on how I want the header design. Can someone please help me with this? Am new to Magento and still learning things. I am ...
1
vote
1answer
49 views

Custom email not creating with default Header and footer in Magento 2

I visited and tried all related solutions available on stack exchange so decided to add my question too as issue is not resolved. Function is: public function sendEmail() { $email="...
0
votes
1answer
67 views

Magento 2 : Script from Javascript is load but doesn't execute

Sorry I have kind of strange problem with Magento 2 I am not use to Magento I made a script which should be executed in the Ulimo template in the header of my website, on the network console the ...
0
votes
0answers
20 views

Display a message regarding cart discount in header of all the pages in Magento 2

I am showing one message regarding cart discount in the header of all the pages, but on some pages, the discount is not showing as if the cart is empty. How to fix this issue.
0
votes
0answers
42 views

Magento 2 Adding a text box in header of magento theme infortis-ultimo

Sorry I am a newby on Magento2. I wanted to add a textbox in my header in the area 4 (page header, primary central column) mentionned in the user guide. In a way I have no idea how to do so. I looked ...
0
votes
0answers
24 views

Compare() link to be placed in dropdown menu in magento 2.3

I want to place the Compare link inside the dropdown below Wishlist in header links as shown here OR https://prnt.sc/os1u0o. Can any one tell me how to do that ?
0
votes
2answers
35 views

Mgento2 curl can't set headers

/** * 创建购物车 * @param $source * @param $token * @param string $view * @return mixed * @throws Exception * @internal param $data */ public function createCart($source, $token, $view = 'default') ...
0
votes
1answer
56 views

How to add logout on header links in Magento 2.3.X

Can anyone tell me how to add 'sign out' option after the user is logged in on header links in Magento 2.3.X https://prnt.sc/oqe2ue
0
votes
1answer
32 views

Unwanted Content Is Showing in Header

I am Working on a website, after uploading the website on the server an unwanted "print(''); " is shown in the header, i have tried to remove it but i'm unable to do that please help. screen short is ...
0
votes
0answers
35 views

CMS page Header alignment issue

My cms page : content: <div class="container"> <div class="list-group-item list-group-item-success"><h1>giri.in</h1></div> <div class="row jumbotron" ...
0
votes
3answers
73 views

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

I have these codes for account link. How can I change the code in phtml account link section so that if user is not logged in the acount link section code will not execute else it will execute. app/...
0
votes
1answer
32 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
38 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
33 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
88 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
190 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
47 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
30 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
21 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
68 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
526 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
24 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
170 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
19 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 ...
7
votes
1answer
429 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
113 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
354 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
41 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 ...