Menu template not picking up css classes

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
mechatech
Forum Members
Forum Members
Posts: 51
Joined: Thu Oct 25, 2007 5:49 pm

Menu template not picking up css classes

Post by mechatech »

I'm using 1.11.10 and I am trying to get the cssmenu_ulshadow.tpl menu to work on my website. I have my own template and stylesheet

In my template i have this:

Code: Select all

<div id="page-menu">
          {menu template="cssmenu_ulshadow.tpl"}
</div>
The problem is the menu is not getting styled.
I checked the code on the page and it doesn't seem to be using the classes like the default template does when it uses that menu.

I'm getting:

Code: Select all

<div id="page-menu">
      <div id="menuwrapper">
           <ul id="primary-nav">
                <li><a ><span class="sectionheader">About</span></a>
                      <ul class="unli">
                           <li>
                                <a href="#"><span>Founder</span></a>
                           </li>
                           <li>
                                 <a href="#"><span>President</span></a>
                           </li>
                           <li class="separator once" style="list-style-type: none;">&nbsp;</li>
                       </ul>
             </li>
The default template has classes on the <li> like <li class="menuactive"> and <li class="menuparent">

Why are the classes not showing up on my template?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Menu template not picking up css classes

Post by velden »

You need to connect the stylesheet(s) to the PAGE TEMPLATE.
Post Reply

Return to “The Lounge”