Jump to content

Resolved - Navigation links with own ids?


Guest smdstudios

Recommended Posts

Guest smdstudios

I am using the crosshatch template to create a layout for my client and they want a different rollover effect for each nav item but the code doesn't provide individual link ids to accomplish this. Can anyone suggest how to do this???

 

 

Link to comment
Share on other sites

Welcome smdstudios! Glad to see you made it to the forum.

The Navigation includes a link to the HomePage, all the Categories in a collapsible menu, a link to Gift Certificates (if you have any), and a link to Sale Items (if you have any).

For the Categories, the Smarty variable {$BRANCH.cat_id} should be available. As such:

<li><a href="{$BRANCH.url}" id="cat_{$BRANCH.cat_id}">{$BRANCH.name}</a>
{if isset($BRANCH.children)}<ul>
{$BRANCH.children}
</ul>{/if}
</li>

gives you a unique id for the <a> tag.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...