I'm completely new (like 3 days in) to Magento Development so I apologise in advance if i'm asking a silly question!

I've really struggled to find a good magento course online so now i'm at the stage of trying to figure it out myself (which is probably a bad idea, but if someone can point me in the direction of a great course, i'm all ears)

I'm currently trying to access my store information inside a custom template file


and i'm including it inside my default.xml file like this

<referenceContainer name="header.panel">
    <container name="custom.header.top" htmlTag="div" htmlClass="name-number">
        <block class="Magento\Framework\View\Element\Template" name="custom.header.top.content" template="Magento_Theme::top_header.phtml" before="-" />

I have had a look at guides online such as


The bits of courses I have done haven't even mentioned the code directory yet. How can I implement something like this to access my store information in my frontend folder?

If someone could explain to me how it works, i'll be forever in your debt!

  • have you run all the deployment commands?? – Sumit Aug 28 '19 at 15:55
  • @Sumit i'm not sure, please can you explain – S_R Aug 28 '19 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.