Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
0 votes
1 answer
10 views

Scripts added in the head miscelleneous script section from admin rendering in body tag instead of head tag

I have added a GTM code into the head section of my website from Admin -> Content -> Design -> Configuration -> HTML Head -> Script and stylesheet like below <!-- GTM tag start -->...
amesh's user avatar
  • 551
0 votes
2 answers
62 views

Can we add extra container to page header in Magento 2?

I need to add a extra container to page header. https://prnt.sc/dq9LDPcioxvJ please check attached screenshot.
kiran's user avatar
  • 527
0 votes
5 answers
92 views

Header color is now pink

How do I fix my header background color. I cleared my cache and now it's pink. How do I fix this. I'm not very familiar with this software BTW..enter link description here
Devin's user avatar
  • 1
5 votes
1 answer
486 views

How to access the magento 2 graphql api using react js

We are developing a headless eCommerce application for our company, so here is my question how to access the magento2 product collection graphql API which is running on a server using react js which ...
Naveen Raj Kumar's user avatar
0 votes
2 answers
72 views

Custom Header Link Layout Update

I have added the below code to app/design/frontend/Company/Theme/Magento_Theme/layout/default.xml but the link is not appearing in the header. Can someone please tell me what I am missing? <...
A. Andersen's user avatar
0 votes
0 answers
108 views

Access to XMLHttpRequest at Blocked for admin and checkout page only

I'm using magento 2.4.5 nginx with varnish i want to use cdn and has set config to below section : Secure Base URL for User Media Files: https://subdomain.mysite.com/pub/media/ Secure Base URL for ...
Peren's user avatar
  • 17
0 votes
1 answer
90 views

Magento 2.3.5: Move breadcrumbs into the header

I'm trying to move the breadcrumbs into the header, right now it displays outside of it. What I mean is as follows: the above shows the breadcrumbs being outside of the header, I want it to be a part ...
user2240778's user avatar
0 votes
1 answer
40 views

Move navigations into header part and do not disturb the responsive mobile screen

My original theme screen is like this But I want in this way But due to these changes, my responsive view gets distorted like this. I wrote this line of code in the default.xml file <move element=&...
user170106's user avatar
0 votes
1 answer
35 views

how can change the header address?

how can i change the address, where is the setting? Also, the footer how can change the phone no and email?
user104362's user avatar
2 votes
2 answers
1k views

Varnish - Error 503 Backend fetch failed (Header too long)

Getting following error while using Nginx. Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 32771 Varnish cache server Following error logged in varnish log. BogoHeader ...
piyush_systematix's user avatar
0 votes
1 answer
40 views

insert an infotext for an online action in header

I want offer an online action and want insert a informationtext in the header of my website https://agoshop.at like in this picture: Hope someone can help me how I can solve this. kindly regards for ...
haiflosse's user avatar
0 votes
1 answer
259 views

How to Show Only Few Categories in Header in Porto Theme in Magento 2.4.3

I have a lot of categories on my store. I want to show just few categories in header here so that the header looks shorter. You can see in the screenshot the header has occupied 60% of the page space. ...
rana wseef's user avatar
0 votes
2 answers
211 views

Header of my website get disappeared

I am working on a magento2 website using a smartwave Porto theme, suddenly I noticed that the cart icon and search bar disappeared and my menu get disorganized and unclickable. I have run the ...
Adex's user avatar
  • 15
0 votes
1 answer
7k views

How to add custom js script on the <head> tag in magento2

Hi here am trying to add a js script to the <head> tag, methods used Content => Design => Configuration, Now click on the edit link of the current theme and Go to the HTML Head tab and ...
Praveen Negimani's user avatar
0 votes
2 answers
227 views

Header links Magento 2

In my header links, right now I have "Create account" and "Sign in" and before those I want to add a title "My account" with a certain class, but I don't know how I can ...
Mike's user avatar
  • 13
0 votes
1 answer
286 views

Show empty price-label (£0.00) in minicart when empty

I want to show the price next to the minicart icon even if it is zero/empty. I have added this code to Magento_Checkout/templates/cart/minicart.phtml <span class="price-label" data-bind=&...
totneschap's user avatar
0 votes
1 answer
46 views

Change minisearch bar input width on hover

I am trying to change the search bar input width when it expands on hover. <div class="search-wrapper"> <div class="search-content block block-search" id="search-...
totneschap's user avatar
0 votes
2 answers
899 views

Get config value in XML layout

I create config value in system.xml that contain src of a script taghow can i call this value in view\frontend\layout\default.xml file in head tag
Jad's user avatar
  • 3
0 votes
1 answer
852 views

How can I move logo to centre and top-search to left side of screen in Magento 2?

I want to move header logo to centre and top. Search bar to the left side of screen as per show in screen shoot how can I do this using default.xml file
Joy Poly's user avatar
  • 501
0 votes
1 answer
445 views

How to add inline css to the Transaction Emails

I need to update existing email header. There for I have to modify some styles.but doesn't define in specific style in app/design/frontend/{themename}/{namespace}/Magento_Email/email/header.html app/...
Singhe's user avatar
  • 149
0 votes
1 answer
195 views

Magento 2.4 Header and footer not showing in Email template

I have create one custom module and in this module I have created send email functionality. But In Email header and footer is not send. So Please help me. THANKS.
Mohit Patel's user avatar
  • 3,671
0 votes
2 answers
656 views

Magento2 - Changing the position of header content

I want to make the Free Shipping content at the top center of the site but it is in right corner. How to change the css for doing it? Created a block on the admin panel and applied this code on ...
kks's user avatar
  • 19
0 votes
1 answer
33 views

How to use bootstrap in my back-end module?

I'm trying to build my first backend module and I was wondering if it is possible to use the bootstrap in the Magento Backend, or if it is only with html tags? I tried to use the bootstrap added in ...
1322Lucas12123's user avatar
0 votes
2 answers
498 views

Magento 2 Grid Column Header Alignment

How do you set the alignment for a grid header (th) element when implementing ui-component? We can set the "fieldClass" config option to center the column contents (td), but there's nothing ...
Toby Crain's user avatar
0 votes
1 answer
2k views

Magento 2 : How to get data from headers?

I am passing "id" in headers & trying to get its value in custom script. using below code $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $response = $...
devhs's user avatar
  • 477
0 votes
0 answers
30 views

Add customer service number at the left of the header

I want to add customer service number on the left side of the header. How can I do it? There is no option in the back-end to add number.
Chetna's user avatar
  • 1
0 votes
1 answer
43 views

Theme Luma issues

For my online store I want use Luma theme and in priciple all good, but I need modify little structure, I need below menu add custom links list (which will be displayed on all pages) - I have .phtm ...
John Genry's user avatar
0 votes
2 answers
65 views

Magento2 Add header and footer in checkout page in enterprise edition

Can anyone let me know how to add header and footer in checkout page in magento2? i have Magento Enterprise edition, i tried with below code in theme/checkout_index_index.xml but its not working: <?...
bhargav shastri's user avatar
0 votes
1 answer
410 views

How to show the Company Name in Header.phtml?

I want to show the Company Name in Header.phtml but its working as expected. Can anyone please guide me how to display the company name in header section?
MagentoDev's user avatar
0 votes
1 answer
22 views

Magento 2.3 Header Skewed

I have modified the header in my Magento2 site and it appears skewed to the right. I have checked the CSS of the div and the subsequent elements - logo, search and cart and cannot find a fix. Attached ...
Petey88's user avatar
  • 47
1 vote
1 answer
291 views

Header Tag <title>How can I change Product wise dynamically?

I want to Change my header title tag product wise dynamically.my Magento version is 2.3.4. how can I get SKU title to set header title tag? I want to solve this problem. I want to Dynamically change ...
anurudda official's user avatar
0 votes
1 answer
792 views

How to add class for Reference Block Arguments in xml file?

I have created custom in link header, <referenceBlock name="header.links"> <block class="Magento\Framework\view\Element\Html\Link" name="custom-link" before=&...
zus's user avatar
  • 145
0 votes
0 answers
46 views

Getting footer and header in an external script?

Magento 1.9 I created an external script in my root folder. It contains these lines in order to work: require '../app/Mage.php'; Mage::app(); How can I get the header and footer? Is it possible at ...
EOB's user avatar
  • 255
0 votes
1 answer
793 views

Magento 2 to add link with current url as href inside head section

need to add alternative link in head with current URL as Href. example <link rel="aletrnative" href="{current page url}" />
hetesh mohan's user avatar
0 votes
1 answer
230 views

How to add product sku beside of product name in header in product edit in admin in magento 2

I want to add the SKU beside the product name in "product edit page" at the admin-side in magneto 2? i have changed in Magento\Catalog\Block\Adminhtml\Product\Edit.php here public function ...
Shubhajay Das's user avatar
0 votes
2 answers
925 views

How to Disable welcome message in header file in magento 2?

How to disable Welcome message in magento 2.3
gill's user avatar
  • 329
0 votes
1 answer
943 views

Magento 2 - get amount of items in cart by using knockout.js

I am creating a new header. It is supposed to look like this: I need to get the number of items in the cart and write it to a certain place in the header, where the minicart is showing. So I added ...
Black's user avatar
  • 3,100
1 vote
0 answers
174 views

Show wishlist counter on header when it doesnt have items

I need to display cart and wishlist counters on my own header block. For the first one i've just modified the CSS to display block. But I can't find how the wish list counter works, so it will show 0 ...
Ana Gonzalez's user avatar
0 votes
0 answers
59 views

My Account and Shopping cart link not getting loaded in header for some pages in magento 2

There are few pages on my website where MyAccount and Shopping cart links are not getting loaded in my header. Check header on this page https://wazoodle01.wsisites.net/index.php/knowledge-base/...
Nafsss's user avatar
  • 720
0 votes
1 answer
131 views

I want to remove header for particular catagory and I need to add custom header

I want to remove header for particular catagory and I need to add custom header <reference name="root"> <remove name="header"/> </reference> </reference name="root"> <...
vinaysirige's user avatar
0 votes
2 answers
928 views

Add links inside My Account in header Magento 2

How can i add links inside Myaccount in header of magento 2 See https://prnt.sc/ren9h3
Nafsss's user avatar
  • 720
1 vote
2 answers
2k views

Magento 2 - Login form in user account header

I want to load the login form into the account dropdown in the header. Therefore I duplicate the default customer login form and loaded it into the dropdown phtml template file using the following; &...
JGeer's user avatar
  • 1,420
0 votes
2 answers
592 views

Add sign-in and Create Account link in custom header

I have created a custom header.phtml file to make my custom header. See https://prnt.sc/r7dtnu Now I want to add Sign in and Create an Account link in this. How can I add here?
Nafsss's user avatar
  • 720
0 votes
1 answer
786 views

Customer login is missing in Magento 2 Luma header

I have a custom Luma theme I use for my store, for whatever reason sign in link is missing but I do have Create an Account on the header - where should I start looking to resolve this issue. I see ...
roger's user avatar
  • 541
1 vote
1 answer
29 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 ...
Max Porteous's user avatar
0 votes
1 answer
394 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 ...
Mohammad's user avatar
0 votes
1 answer
176 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 ...
iwfabric's user avatar
0 votes
3 answers
1k 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
Nafsss's user avatar
  • 720
0 votes
3 answers
314 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 ...
Sagar Parikh's user avatar
0 votes
1 answer
947 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,...
Sagar Parikh's user avatar

1
2 3 4 5
8