Zen Follower
- Join Date:
- Apr 2008
- Posts:
- 150
- Plugin Contributions:
- 0
Creating breaks between category names in navCatTabs
I'm using category tabs on top of the page instead of categories listed in the side columns. This works great except for one little detail. The list breaks some of my multi word category names if they are at the end of the header. So, for example, a category called "Posters and Artwork" or "Sheet Music" might look something like this:
xxother categoriesxxxxxxx Posters
and Artwork xxxxxxxxxxx Sheet
Music
One quick fix I found is to actually include the the <br> tag in the category name where I want the break as I define the names in the admin. But that leaves me with a HTML tag coming up in places where I don't want it (like a category dropdown menu should I want to add one). So though I get the result I want at first, I suspect this is a sloppy fix for the long.
I know the output of the category tabs is created by my tpl_modules_categories_tabs.php which I have in includes/templates/CUSTOM/templates
How can I tell the code not to break the category names which have more than one word?