Folks, i wonder if this is possible to make.
If i use a menu, lets say "toxic_xh", as horizontal menu. Is it possible to use a <br> in the menu?
If i use this in the page:
<h1>Menubutton/<br>in two lines/<br>or even three</h1>
Then this is showing exactly as i ment it should on the page, but in the meu (tc, toxic) it is only one line.
Can this be done somehow?????
Hope you understand what i mean
Thanks already!
Emile
How to <br> in menu ?
Re: How to <br> in menu ?
The labels of the menu items are given by the $h array, which contains the page headings without any HTML tags. To allow <br> elements in the menu, you would have to modify the $h array, which might have some unwanted side-effects. Anyway, you can try it out by modifying a single line in cmsimple/functions.php:bastingse wrote:Is it possible to use a <br> in the menu?
Code: Select all
$temp_h[] = trim(xh_rmws(strip_tags($temp[2], '<br>')));
Christoph M. Becker – Plugins for CMSimple_XH
Re: How to <br> in menu ?
Whow !!! This works !!!!cmb wrote: which might have some unwanted side-effects.
Perfect, just what i needed !! So much appreciate this !!
What can be the unwanted side-effects??
Re: How to <br> in menu ?
Great!bastingse wrote:Whow !!! This works !!!!
Well, $h (i.e. the page heading) is used for other purposes, too, so there might be cases where the <br> causes trouble or is at least unwanted. That might particularly the case with some plugins using $h. However, if it works for you, it's fine.bastingse wrote:What can be the unwanted side-effects??
Christoph M. Becker – Plugins for CMSimple_XH
Re: How to <br> in menu ?
Useful replies! Thank you. I don't understand this, neither..=))
Re: How to <br> in menu ?
If you use plugins on the page, test if all of them work properly.sophiamaria wrote:Useful replies! Thank you. I don't understand this, neither..=))
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.