Areas not working on new page type
Permalink
Hello
I have made a new page type (handle: 'page_two'), and when editing defaults for the page all my areas show up fine, but when I create a new page with the design 'page_two' none of my custom areas show up except for those area names that are also present in the default page design (handle: 'page').
My area names are: 'title', 'subtitle', 'column 1', 'column 2' and 'column 3'
What could the problem be?
I have made a new page type (handle: 'page_two'), and when editing defaults for the page all my areas show up fine, but when I create a new page with the design 'page_two' none of my custom areas show up except for those area names that are also present in the default page design (handle: 'page').
My area names are: 'title', 'subtitle', 'column 1', 'column 2' and 'column 3'
What could the problem be?
Yes, here is the code for the areas that aren't showing:
<div id="content"> <div style="max-width: 100px; float:left;"> <?php $a = new Area('Subtitle'); $a->display($c); ?> </div> <div style="max-width: 565px; float:left;"> <?php $a = new Area('Title'); $a->display($c); ?> </div> <div style="float:left; clear:both; margin-right: 20px; width: 290px;"> <?php
Viewing 15 lines of 32 lines. View entire code block.
They have one external Stylesheets for example style.css?
id="content" makes the problem maybe?
id="content" makes the problem maybe?
I do not think that the external stylesheet is causing the content to be hidden. First of all I'm using the same overall style on the default page type, which works fine, and the fact that the areas show up fine when editing page defaults? :-)
Found the problem :-) Unrelated to code.
Can you show the code.