Jump to content

Recommended Posts

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 -->

post-269413-0-54668200-1344931533.gif

tmcategories.php

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More