1

I am working with magento 1.7 and i have many long categories name in my site. I wish to split every long category name in two line in menu because i would like to display my menu in one row and not two. Any idea ??? Thanks

1

Is the name one word? Then you need wordwrap() the name in your template.

If it is not, you can just define the (max-)width of the container to limit it.

You need to limit the width in any case to force a line break!

  • 1
    Not one word but many word. After others search i found and other solution that's work with me very well.I just modify my category names in the admin to contain zero-width spaces (en.wikipedia.org/wiki/Zero_Width_Space) at strategic intervals. – Amirov Aug 19 '13 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.