Shape 5

Joomla Templates => Emma Smooth - Club => : Kevin M. August 26, 2009, 01:48:00 PM



: Menu Sub-Headings
: Kevin M. August 26, 2009, 01:48:00 PM
I am not sure why but the headings are only working for the first 5 menu items.  After that they do not show.  Can anyone help?

Thanks.


: Re: Menu Sub-Headings
: mikek August 26, 2009, 04:05:06 PM
Please post a url and mention the specific menu in question.


: Re: Menu Sub-Headings
: Kevin M. August 26, 2009, 10:48:29 PM
I actually figured it out.  Here is the problem.

You cannot use an apostrophe in your sub headings, the reason is because the scripting creates this HTML:

<script language="javascript" type="text/javascript" >var s5_text_menu_1 = 'Go Back Home';</script>
<script language="javascript" type="text/javascript" >var s5_text_menu_2 = 'What's on tap';</script>

the single quotes break up the next few lines of code and there is the problem.

You can use ASCII codes right in the template fields but you have to re input them every time you make a change to the template.

Not sure if there is a way to fix that by altering one of the JS or PHP files.