popcorn1985 Posted August 14, 2012 Share Posted August 14, 2012 Hi all, So I bought a template that includes TM Categories module. I have managed to get it to display pages instead of just categories - but am now stuck! The module is set up to display each header button as a different colour (there are different files for each button but only a small colour stripe as attached). The way I have included fixed pages means that all the buttons are the same colour! The website is http://pzazz.biz/ and the categories.tpl has been edited like below! Any help would be really appreciated!!! <!-- TM Categories --> <script type="text/javascript" src="{$module_dir}superfish.js"></script> {literal} <script type="text/javascript"> $(document).ready(function() { $('ul.sf-menu').superfish({ delay: 1000, animation: {opacity:'show',height:'show'}, speed: 'fast', autoArrows: false, dropShadows: false }); }); $('#cat > ul.subcat1 > li').eq(1).addClass('second') </script> {/literal} <div class="clearblock"></div> <div id="tmcategories"> <ul id="cat" class="sf-menu"> {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $smarty.foreach.blockCategTree.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child} {/if} {/foreach} <li> <a title="Holiday Club" href="http://pzazz.biz/content/6-holiday-club"> <span>Holiday Club</span> </a> </li> <li> <a title="ShowTime" href="http://pzazz.biz/content/1-showtime-"> <span>ShowTime!</span> </a> </li> <li> <a title="Testimonials" href="http://pzazz.biz/content/2-testimonials"> <span>Testimonials</span> </a> </li> <li> <a title="Careers with us" href="http://pzazz.biz/content/3-careers-with-us"> <span>Careers with us</span> </a> </li> <li> <a title="About Us" href="http://pzazz.biz/content/4-about-us"> <span>About Us</span> </a> </li> <li> <a title="Contact Us" href="http://pzazz.biz/content/5-contact-us"> <span>Contact Us</span> </a> </li> </ul> </div> <!-- /TM Categories --> tmcategories.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now