I’m trying to create own template including submenu instead of the regular sidebar in Twenty Eleven.
Although I manage to create and select my new template the page ends up with bad CSS.
Here is what i have done
- Copy sidebar-page.php and named it submenu-page.php
- Copy sidebar.php and named it sidebar-submenu.php
In submenu-page.php
Added new template name “Sidebar left menu template” and changed
<?php get_sidebar(); ?>
to
<?php get_sidebar('submenu'); ?>
In In sidebar-submenu.php
Replaced all code with Hello World-link.
Even tough Hello World appears correctly the link is uncklickable due the div #primary is all over the page.
For unknown reason the HTML-body gets both singular and two-columns as value in the class attribute. If I edit sidebar-page with get_sidebar(‘submenu’) everything looks and works great.
How do I tell wordpress that my template (submenu-page.php) is two columns and not both single and two columns?
Thanks for your time!