Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
7
votes
9answers
10k views

cannot read property 'section loadurl' of undefined

I'm getting this error on the firebug while loading homepage. Due to this error the pages are not loading fully. only the Header, Nav Menu and Footer and showing. The main content sections are not ...
5
votes
8answers
13k views

How to add hreflang tags (or other meta tags) to pages in magento?

Hi using info from this site and around the web I have started to add hreflang tags to my magento store. They work and display as they should on the default (American)site, however on the alternate (...
15
votes
2answers
24k views

How to add or remove header.links in magento2?

I am searching header.links block to remove one link and add some links but I am not getting where to make changes. Suggest me some solution
2
votes
2answers
3k views

Move Cart to Header In Magento 1.8.1

TOPIC: Looking to move Shopping Cart to Header-Right in Magento 1.8.1 ATTEMPTS + OTHER POSTS: How to add a Cart Icon to header? Move Cart to Header in Magento 1.7 Any contribution is greatly ...
2
votes
1answer
9k views

Magento 2 how to make sticky header for frontend? [duplicate]

I am using Magento 2.1.5 and I need to make header sticky for the frontend. how can I make header sticky? When user scroll page then header should be sticky at the top, how we can do this? this code ...
7
votes
2answers
16k views

Removing Welcome message from magento 2 - just xml

I've started to work on Magento 2 and get my head around it, I'm really familiar with Magento 1 and removing the welcome message was no big deal. However all I've found the location of the welcome ...
2
votes
2answers
3k views

Fixed Headers in Magento

I want to fix my header for my magento site. Please get me some solutions so that I will be helpful
0
votes
3answers
2k views

How to display customer name in header after logged in

How can I display customer name in the header after logged in successfully?
5
votes
5answers
24k views

how to show my account link in header after successfully login in magento 2.0

how to show my account link in header after successfully login in magento
4
votes
3answers
19k views

Adding a class to block Magento 2

I have the following custom xml inside of my Magento_theme > layout > default.xml <referenceBlock name="top.links"> <block class="Magento\Framework\View\Element\Html\Link" name="...
2
votes
2answers
13k 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 ...
0
votes
2answers
7k views

How to add a Cart Icon to header?

Hello! Currently Running Magento 1.8.1 Looking to add a ShoppingCart Icon which links to Shopping Cart / Checkout at right side of header. Would like to know Steps to Upload and Show ShoppingCart ...
0
votes
2answers
858 views

How to change Cart to only show #of Products & Price?

http://www.statis-online.com The cart in Header is cart_sidebar. It has been moved to Header-Right. I would like to RESIZE & CUSTOMIZE this to only show Price / Qty of products. Right now, if ...
14
votes
1answer
25k views

Magento 2 Override default header template

I have created my own theme by extending the Magento/Blank theme. Now want to override the default header template files link.phtml, topmenu.phtml, header.phtml which is located at vendor/module-...
4
votes
2answers
17k views

Magento 2 create new page header section

I am new to Magento2 and I am confused how to proceed when I want to rewrite default part of the Luma theme page completely. For example the header - I want to rebuild it from scratch, adding whatever ...
4
votes
5answers
11k views

Magento 2: get customer().lastname in header.phtml

I don't get how this works. I'm trying to edit the header of my Magento 2 store (Magento_Theme/templates/html/header.phtml) and I'm trying to retrieve my customers lastname like this: <span data-...
5
votes
1answer
7k views

Magento custom module adds HTML to header

I try below code is working for add a phtml file in header of Magento. <reference name="header"> <block type="your_module/yourblockclass" name="yourblockname" template="your_module/...
7
votes
1answer
1k 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 ...
5
votes
3answers
13k views

Magento 2 page-header background color

I want to change the background color to black on luma theme page-header. i am using luma as my default template - what is the best way to go about? - I am using github version fresh Magento 2 ...
5
votes
3answers
10k views

Removing Header and Footer from CMS page

is it possible to remove both the header and footer and only display the contents of a CMS page? If so, how? Currently the html looks something like this by default: <body class=" cms-page-view ...
4
votes
1answer
21k views

Add block in header layout

I have added my custom module block in header in layout like below pinsearch.xml <default> <reference name="header"> <block type="core/template" name="pinsearch" as="...
3
votes
5answers
4k 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 ...
2
votes
2answers
13k views

Editing header links in Magento 2

I'm on Magento 2.1, the header links are rendered with this structure: <ul class="header links"> <li>...</li> <li>...</li> ... </ul> I need to remove the ...
1
vote
1answer
5k views

Cannot customize header block by custom module

First, I can easily change header template by <reference name="header"> <action method="setTemplate"><template>customizer/header.phtml</template></action> </...
2
votes
2answers
3k views

magento2: add static block to header menu

My Categories are displayed in my Header Main menu. Now I want to add another link( called 'about us') after the last category in my header. I plan to create a static cms block -> in it's content put ...
0
votes
2answers
2k 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
2k views

magento 2 header

I have a fresh Magento2 working and I am using Luma as my template. I want to add a costume image on the header that goes across the template, behind the logo. Firebug directs me to: page-...
0
votes
1answer
1k 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="...
8
votes
4answers
8k views

How to fix: “HEADER ALREADY SENT” and GD2?

This is a follow on to the question on How to debug: HEADER ALREADY SENT and GD2. Specifically how to fix the following errors (note first line had been added using previous debug advice to track the ...
5
votes
3answers
3k views

How to debug: “HEADER ALREADY SENT” and GD2?

I have an annoying HEADER ALREADY SENT error in system.log. It is not easy to debug it, what I could do was to improve the logging to isolate the source of the issue (has described here): Cannot ...
3
votes
2answers
10k views

How do I change the welcome message in Magento 1.9+ the proper way?

I would like to change the welcome message to just show initials. Clearly I can do something in the template, however, I would like to extend/over-ride Mage_Page_Block_Html_Welcome to do this 'the ...
3
votes
1answer
326 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 ...
3
votes
1answer
5k views

Magento 2 theme header - Welcome message

I've been learning the ropes in theming in magento 2, I've started to get the hang of it with my own theme using Snowdog as my parent and styling in sass. My question is, I came to remove the welcome ...
2
votes
1answer
4k views

Can't enable Magento Frontend to run in frame

I'm having problems trying to display a Magento website on an iframe in another domain. Through the Admin Panel, I've already enabled the 'Allow Magento Frontend to run in frame'. But when I try to ...
2
votes
2answers
538 views

Move Cart to Header in Magento 1.7

I’m having trouble in moving the mini cart from sidebar to header. I’ve tried all the tutorials available in the internet but it doesn’t work. I also tried adding this in the header block of layout\...
1
vote
1answer
88 views

remove header part from some .phtml pages [closed]

visit these links : http://4.videomergerapp.com/ we removed the complete header part [except logo ] in the following page : http://4.videomergerapp.com/marketplace/ I want to hide complete header ...
1
vote
1answer
1k views

How to get the current post being viewed from the aw_blog extension

I have the following code in template/page/html/head.phtml, and for social network sharing I need access to the blogpost content so I can extract the images from the blogposts. $post = Mage::...
1
vote
1answer
295 views

Magento 2 Header Search Border on Focus

How can i set disable the glowing blue border on focus from the Header Search (minisearch)?
1
vote
2answers
229 views

Top header cart modification

How to remove edit and remove buttons/links from the top header cart.
0
votes
1answer
63 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
3answers
52 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
1k views

How can I add icons in Magento Homepage header?

May i know how to add icons in header ?
0
votes
1answer
281 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">...