I have created a new theme.
In admin panel I have:
I have added:
<div class="footer-container"> <div class="footer"> <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('foo_block')->toHtml() ?> <p>This is some text.</p> </div></div>
Nothing happens. Why doesnt at least "This is some text" appear?
Where is the order of the blocks stored in the footer and how do I add a block at the beginning of the footer?
I would like to just add some static HTML to the footer.
All of the online help presupposes that one knows everything about blocks or at least everything about how to do things in Magento 1 (I am starting from Magento 2). I mean, I get what blocks are, but no matter how much threads I read about them, I do not understand in what files to write the php code for them and how to link this file so that it actually shows up in the browser. I have tried like a million things.
OK, so I have actually managed to add something to the footer by adding this to
... <referenceBlock name="footer_links"> <block class="Magento\Cms\Block\Block" name="foo_block"> <arguments> <argument name="block_id" xsi:type="string">foo_block</argument> </arguments> </block> ...
I am actually trying to make the header consisting of two columns. but I guess I could add some html before and some html after to achieve this...