Questions tagged [header]

Denotes Question related to header part of magento.

Filter by
Sorted by
Tagged with
1
vote
0answers
45 views

Use Magento header and footer on a webpage inside Magento root Directory in Magento2

I have a working web page which includes HTML and javascript. I want to use Magento Header and Footer on that webpage. Supposing that I kept that web page inside the Magento root directory, What is ...
0
votes
1answer
718 views

Magento 2: Disable default header and add custom header content

I have created a custom header container and placed inside app/design/Foo/bar/Magento_Theme/templates/html/header.phtml Now the content I need is showing up, but also displaying default header ...
3
votes
1answer
246 views

Magento 2.1.1 how to add version number to css

I want to add ?v=20170721 after css file http://example.com/pub/static/_cache/merged/91eeca7a8ffa88b106ef85bd3a665d93.min.css?v=20170721 I tried to set "yes" in sign static files but this is not ...
0
votes
1answer
57 views

How do I get rid of multiple H1's on homepage?

I am relatively new to Magento with past experience of WordPress of few years. I'm trying to get rid of the multiple H1s on the homepage of a new client. sobefurniture.com The developer coded the ...
0
votes
1answer
254 views

Magento Admin Header above phtml Content?

Currently in the Admin Panel my custom phtml page is under the header: app/code/local/Sean/MasterCreate/Block/Adminhtml/Warehouse/Display.php <?php class ...
0
votes
1answer
1k views

Customize header logo link via the admin

I am working with a custom theme in Magento 2.1. I would like site administrators to be able to set the header logo's link via the admin config. This link would then be used in app/design/frontend/...
0
votes
1answer
1k views

Refresh header.phtml on click on add to cart button

I am making a Free Shipping top bar, i have added code in header.phtml which is located in app/design/frontend/mytheme/mytheme05/template/page/html/header.phtml My Code is : <div id= "um" class="...
1
vote
1answer
293 views

Magento 2 Header Search Border on Focus

How can i set disable the glowing blue border on focus from the Header Search (minisearch)?
0
votes
3answers
656 views

How can I overwrite vendor/Magento/framework/View/Element/Html/links.php file?

How can I override following function?? protected function _toHtml() { if (false != $this->getTemplate()) { return parent::_toHtml(); } $html = ''; ...
1
vote
2answers
501 views

how to remove header links class with ul tag in magento 2?

I'm on Magento 2.1.6. The header links are rendered with this structure: <ul class="header links"> <li>...</li> <li>...</li> ... </ul> My HTML structure is ...
2
votes
1answer
182 views

Magento 2.1.6 - How to setup email templates header and footer

I am new in Magento 2x. I just want to setup email header and footer globally. I can't locate either header.html / footer.html files in my Magento file systems as well. Also in "Marketing/Email ...
0
votes
1answer
673 views

Customize magento 2 theme

I installed magento 2 and successfully implemented custom theme. I used magento blank as my theme's parent theme. I'm new to magento, so this may seem like a stupid question, but please help me ...
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
1answer
173 views

How to display the my menus in the header section that is to the top of the home page?

I want to display the my categories in the header section that is to the top of the home page.I already try the code in page.xml like this.But it doesn't work . Please help. <...
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 ...
1
vote
1answer
285 views

How to redirect user after an amount of time?

We need to show a page in case users come from a specific URL therefore we can achieve it with the following: $refererSite = Mage::helper('core/http')->getHttpReferer(); however if user is not ...
0
votes
1answer
972 views

How to put log in and log out option in header beside cart in magento?

I wants to change My Account to Log in Button in header beside cart option. when user made log in then it should show log out option in header. Please tell me the code with path.
0
votes
1answer
138 views

Change “My Account” to “Sign in/Sign out” option in header in magento rwd theme?

I want to change "My Account" to "Sign in/Sign out" option in header in the upper right corner. In C:\wamp\www\magento\app\design\frontend\base\default\layout\customer.xml I changed <default>...
3
votes
1answer
3k views

How to setup AWS Cloudfront for Magento 2

I have been looking everywhere for a solution, and I was following the following documents to achieve this task. https://absolutecommerce.co.uk/magento2-aws-cloudfront-cdn Here they mention ...
0
votes
1answer
699 views

Magento2 sign-in link move to the search box Near

How can i move account creation link and sign in link after the search box in header. Need help.
0
votes
1answer
1k views

Reorder tabs in Magento 2 mobile menu, in the navigation-sections group

I have added a new section to the navigation-sections block in the header, so that I can include it in the mobile menu. The element is displayed correctly, but I cannot change the order of the tabs, ...
0
votes
2answers
2k views

How to add new block (without phtml) with links to header content in Magento 2?

What is the correct way to add block with some links and few css classes to header content? This is correct? <referenceContainer name="header-wrapper"> <container name="header....
1
vote
1answer
2k views

Login link add as dropdown into my account magento 2.1.x

I want to show My account menu as drop-down and add Login/Logout link in it. Currently it shows as separate menu link in top.links >> header.links here is my default.xml <page xmlns:xsi=&...
1
vote
1answer
53 views

Top Links editing

Ok, I give up. I've created a child theme based on Luma. At the very top of the page I see these links "Compare Products 0 items My Account Create an Account Sign In" and then a detached word "or". ...
1
vote
2answers
211 views

Move Sign in section under search button

I have Magento 2.1.4 and I want to remove entirely the top block and move the Sign in and create account links below the search bar. How can I do that?
3
votes
1answer
999 views

Checkout page header is not coming [duplicate]

I have made a custom theme in magento 2 all is doing well but in the customer checkout page i don't get my header footer is there but the header is missing. can anyone help me to get out of this.
2
votes
0answers
7k views

How to customise header template in magento 2

Here is what i have already done. Installed Magento 2 Created custom theme in magento 2 Applied that theme Created "templates directories" to override template files I have copied header.phtml from ...
3
votes
3answers
5k views

How to add block into header before all elements (before logo, search, …) via layout xml?

I can not find a way to add custom block before logo and all header elements. <reference name="top.container"> <block type="company_name/module" name="page_header" before="-" /> </...
3
votes
4answers
4k views

Magento 2 - Header: Logo, Nav, and Mini Cart on one line

I am using Magento 2.0 with a copy of the blank theme. I am trying to get the logo, nav, and mini cart on one line but I can't figure it out. How would I do this with the blank Magento theme?
2
votes
3answers
1k views

How to change /blog url to some other url in Magento 1.9.2

How to change /blog url to some other url in Magento 1.9.2 I want to redirect request at http://www.xxxx.com/modular to http://www.xxxx.com/blog/modular
0
votes
1answer
68 views

Editing Universal Page Header - Header.phtml.txt

I'm not very familiar with Magento at all and I've been tasked with fixing something without a lot of training on the subject so please forgive me if my knowledge is lacking here. I need to update ...
1
vote
1answer
63 views

Why Magento Go link is still coming in admin header?

There is a link in Magento 1.9+ admin still coming in header. Something like Try Magento Go for Free But Magento Go was closed. Is it a bug, or something missed? Or Why is it there?
2
votes
2answers
2k views

How to Hide Header(Primary) Menu before login (for Visitors)?

Magento 2 Version - Magento 2.1.4 CE I am trying to create Custom Module for Compulsory login. When user hits the website url it must needs to redirect on login screen and after logged in user can ...
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 ...
0
votes
1answer
176 views

Edit links in header.phtml block

I need to alter the Blog url in the "The Checkout | Blog | Login/Register" block that is referenced in the theme/template/page/html/header.phtml I have looked everywhere and cannot find it. All I ...
0
votes
0answers
32 views

Magento : Add Additional Tag in Header After Content is Rendered

I'm trying to add some data in header of page. When I try to do that, I am getting this error. Call to a member function getLastPageNumber() on null error I am using same method for pagination on ...
0
votes
1answer
3k views

HTML Head issue using Magento2

I've an issue with Magento 2: please Help! I've added some HTML code in: Content > Design > Configuration > Theme Edit > HTML Head The code doesn't work (it's ok, no worries for me, ...
0
votes
2answers
2k views

Issue with invalid Header

We recently started working with Magento, and while we have found answer to a lot of issues we have had, this one is fairly tricky as I am not intimately familiar with the magento core. I am also not ...
0
votes
2answers
1k views

Magento 2 Custom Top header Link is not Showing

I want to create a custom top link in magento 2 for my custom module, but when i load the home page, the custom top link doesn't show up, here's my view/frontend/layout/default.xml: <?xml version=...
0
votes
1answer
73 views

Magento 2 My site's header now show for the first load after flush the cache

After i flush all cache and delete my browser's history and try to reach my site as a new visitor my site's header not show no matter how much time i wait. When i refresh the page its show up with no ...
0
votes
1answer
525 views

Magento 2: header.panel Block Missing

I have move my Magento 2 website from shared host to VPS. I just finished moving site and it is loading fine. For some reason header.panel block is now missing in the header of site? I have compared ...
1
vote
0answers
37 views
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-...
2
votes
1answer
2k views

Remove sections of header

I am creating my custom theme and want to remove some default blocks from site. I have tried this code <referenceBlock name="navigation.sections" remove="true"/> But it is not working for me....
0
votes
3answers
2k views

Fixed Header and Mega Menu

I'm new at magento. I'm using luma theme as a blank. I want to fix header and mega menu when page scroll down. Thanks for your helps.
0
votes
1answer
38 views

Header issues with custom links

I have an issue. I put some custom links to my header. It looks like this for all my web-site pages now: http://joxi.ru/52aRPqZu4kVjlA However, for some reason on my home page those links are not ...
0
votes
1answer
807 views

Magento 1.9 fetch specific cateogry on top level menu in header

I have added custom attribute for Categories section .I want to fetch specific categories only based on custom attribute value in header . I want to modify this code : $this->getChildHtml('topMenu'...
1
vote
1answer
2k views

Adding top.links to new header container magento 2

I've added a new reference container inside of: Magento_Theme/layout/default.xml Here is my code for adding the new container: <referenceContainer name="header.container"> <!-- ...
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 ...
1
vote
2answers
767 views

Magento 2 ajax success json error

I'm trying to to an ajax call using following code $.ajax({ type: 'POST' ,url: SOME_URL ,data: {testdata : testid} ,...

1 2 3
4
5
7