default userpic

Rollover Navigation Bar with Pages

Vote 0 Votes

I am trying to reformat the standard navigation bar that comes in the website template to a custom image (sliding door) navigation bar. I have defined the main index, blog and pages (which are the header titles in the navigation bar) with li class and modified the css template, both my custom one and the screen.css and nothing seems to be working. The list of links simply comes one right after the other. Is there a special way the pages need to be named, or can you even do this with pages? Does this maybe need to go into the html of Main Index template instead of the Navigation template?

Here's one of the Pages from the Navigation Template:

<mt:Pages tags="@tour" limit="1">
    <mt:SetVarBlock name="tour"><$mt:PageID$></mt:SetVarBlock>
    <li class="tour<mt:If name="nav_on" eq="$tour"> on</mt:If>"><a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a></li>
    </mt:Pages>

Reported on Movable Type 4.2

1 Reply

| Add a Reply
  • Hi Tina -

    The fact that the links come from pages doesn't matter how you format them, it's just a convenient way to get the links for your navigation.

    Ultimately, you'll need to make sure your classes (and ids, if you use them) match up to all of your CSS. For that, the best thing to do is get some sort of developer tool to look at what is in use. This can often be multiple stylesheets, which can make it difficult to troubleshoot.

    I personally like Firebug, because it gets to the heart of the matter without too much else. Some like the developer toolbar. I've also worked with some clients who use Chrome, and while it has a nice built in inspection tool, I don't like it as much for modifications on-the-fly.

    But whatever you use, you just need to figure out how to override the default classes to make your changes. Another alternative is just rip them out and replace them with your changes. If you are doing something fancy with JavaScript for sliding items, this might be a better option.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1195 3842

Last Topic: Comment form customization by anisa on Feb 8, 2010

60 184

Last Topic: Dynamic Publishing - Blank Screen by Sivaram M on Dec 15, 2009

955 2987

Last Topic: MT5 - Cookie Problems by Dave Cross on Feb 9, 2010

68 213

Last Topic: How to add Custom Fields by gregoryttp on Feb 5, 2010

19 67

Last Topic: Custom main index page by Richard on Feb 7, 2010

42 169

Last Topic: I want to write my own wordpress plugin by Xarzu on Jan 31, 2010

11 21

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

52 178

Last Topic: Assets - No options by Chelle on Feb 5, 2010

code.sixapart.com

128 444

Last Topic: ActionStream with Movable Type 5.01 by Parneix on Jan 24, 2010

154 468

Last Topic: URGENT! Help needed w/ Virus by PhilContrino on Feb 1, 2010