cancel
Showing results for 
Search instead for 
Did you mean: 

Login Missing From Header in Luma theme

SOLVED

Re: Login Missing From Header in Luma theme

Hi @callam_kidsaw

 

Yes , you need to pass Magento/Luma theme instead of Backend.

 

 

<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>My Custom theme</title>
    <parent>Magento/luma</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>

 

 

Because sign in link and all other components build in Luma theme , so when we wanted to override or when we are going to custom theme we must need to take Parent as Luma theme.

 

If you are creating new theme from sketch and not wanted to override anything then you can take parent as a Blank.

 

hope it helps to you

 

if issue solved,Click Kudos & Accept as Solution

Re: Login Missing From Header in Luma theme

I'm building a theme off of luma. Just mainly changing colours of things and reordering a few elements.

 

The issue has risen again.. it seems to disappear when I clear the cache.

 

I have this in system.log if it means anything?

 

[2018-04-30 10:44:49] main.WARNING: Broken reference: No element found with ID 'customer'. [] []

Re: Login Missing From Header in Luma theme

Hi @callam_kidsaw

 

Yes this log itself says you have given wrong ID element in your layout file.

 

please share/post your layout file which you have created in your custom theme so that its helps us to troubleshot the issue.

if issue solved,Click Kudos & Accept as Solution

Re: Login Missing From Header in Luma theme

I've managed to fix it now and marked one of your answers as the solution to my original problem.

 

To fix the sign in link, I just had to put in the elements I wanted to move around and not override the entire default.xml file (I asked on Stack Exchange).

 

Thanks for ALL of your help though, much appreciated!.

Re: Login Missing From Header in Luma theme

Hi @callam_kidsaw

 

Great to know !! Happy to help and keep helping Smiley Happy

if issue solved,Click Kudos & Accept as Solution

Re: Login Missing From Header in Luma theme

@callum_kidsaw - thanks for posting the solution to this. I hit exactly the same issue/snag . Lost three hours - on this - but learned through your post that i don't need to duplicate ALL the content of the Luma default.xml in my theme's default.xml    ... just the changes I'm interested in making - as you duly note. Thanks again! 

Re: Login Missing From Header in Luma theme

I have "create account" but I am missing "Sign in"  - I am getting system error report, "main.CRITICAL: Broken reference: No element found with ID 'customer. not sure its related. any help would be appreciated - my custom theme XML

 

<referenceBlock name="footer_links" remove="true" />
<referenceContainer name="header.panel">
    <block class="Magento\Framework\View\Element\Html\Links" name="header.links">
        <arguments>
            <argument name="css_class" xsi:type="string">header links</argument>
        </arguments>
    </block>
</referenceContainer>
<referenceBlock name="logo">
    <arguments>
        <argument name="logo_img_width" xsi:type="number">148</argument>
        <argument name="logo_img_height" xsi:type="number">43</argument>
    </arguments>
</referenceBlock>
<referenceContainer name="footer">
    <block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" after="footer_links" template="switch/stores.phtml"/>
</referenceContainer>
<referenceBlock name="report.bugs" remove="true"/>
<move element="copyright" destination="before.body.end"/>