Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Time to live error

In my magento (2.4.6-p5, with Varnish and Redis) I keep getting following error in exception.log: [2024-05-15T18:23:57.623784+00:00] main.CRITICAL: InvalidArgumentException: Time to live is a ...
Twisted_Jar's user avatar
0 votes
0 answers
11 views

java header not working background

const scroller = document.querySelector("#musicscrollid"); const output = document.querySelector("#musicheaderid"); scroller.addEventListener("scroll", (event) => { ...
Frank Stolp's user avatar
1 vote
0 answers
54 views

How to add a dynamic class to magento 2 page-header based on a configuration value without using js

i want to add a class (black-theme) after the page-header like in the image shown below Note: i have already tried to add class using JavaScript but its causing a slight delay in applying the class. ...
Sreyas T P's user avatar
0 votes
2 answers
289 views

Header Logo is not displaying after upgrading to magento 2.4.6

I have my custom theme in magento and in that theme in header the logo is uploaded. The logo is already uploaded there with correct path but still magento default logo is displaying after upgrading to ...
Tisha Jhanwar's user avatar
0 votes
1 answer
28 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
  • 561
0 votes
2 answers
101 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
  • 597
0 votes
5 answers
113 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
982 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
104 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
1 answer
150 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
36 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
2k 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
43 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
335 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
346 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
  • 25
0 votes
1 answer
8k 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
277 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
329 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
64 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
1k 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
969 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
Jay Parmar's user avatar
0 votes
1 answer
574 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
210 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,833
0 votes
2 answers
770 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
46 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
580 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
  • 507
0 votes
0 answers
41 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
48 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
99 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
489 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
23 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
335 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
923 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
  • 165
0 votes
0 answers
47 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
  • 265
0 votes
1 answer
1k 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
234 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
1k 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
  • 339
0 votes
1 answer
1k 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,369
1 vote
0 answers
189 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
74 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
  • 760
0 votes
1 answer
161 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
1k 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
  • 760
1 vote
2 answers
3k 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,418
0 votes
2 answers
790 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
  • 760
0 votes
1 answer
876 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
  • 551
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
424 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
199 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

1
2 3 4 5
8