I have created a custom XML layout page that I will be using for my home page. Right now it is a clone of the normal 1column.xml layout, and I'm trying to add a container for an image slider.
Here is the code I have added to my layout file (home_page.xml):
<container name="slider.container" htmlTag="div" htmlId="slider.container" htmlClass="slider-container" before="page.top"/>
This should in theory produce the following HTML code on the home page:
<div class="slider-container" id="slider.container"> </div>
However, absolutely nothing is happening. I cannot find the container when inspecting all of the elements on the page with the F12 console. I have also added some test CCS to "slider-container" just to be sure, and absolutely nothing is showing.
My custom XML layout page should be working fine. If I remove the footer or header container from the layout file, and flush the cache, they disappear from the page as they should. This tells me that everything is set up and working correctly, but something isn't working correctly within the file.