Weather by You!

Templates and Projects support => Php templates => Topic started by: Pete on January 25, 2013, 03:41:33 AM

Title: WeatherBlues V2 Menu Buttons
Post by: Pete on January 25, 2013, 03:41:33 AM
Hi Jacques,
Can you help with a problem I'm having with the "Report" button on my main menu?
When I hover over "Report" it highlights correctly but, when I click on it, the Home button highlights. The Report button is an additional one I have added to the template and I can't see where to configure it.


Thanks ............ Pete
http://www.fordingbridgeweather.co.uk (http://www.fordingbridgeweather.co.uk)
Title: Re: WeatherBlues V2 Menu Buttons
Post by: Mr.Meteo on January 25, 2013, 11:32:15 AM
Hi Pete,

In your new reports.php page, as all other page, you will find those lines:

<script type="text/javascript">
    // Select menu current item highlight
    //SYNTAX: tabdropdown.init("menu_id", [item menu, start from 0])
    tabdropdown.init("mainmenu", 0)
</script>

This is a little script that do the "twist" when menu is outside of all pages.
In brief, that scrip tell the browser that the menu called "mainmenu" is the
place to do the menu highlighting!

In that example, 0 is the indicated menu item (Home). Then, we count from 0,
1 is for Today and Yesterday (as part of "Recent") and so on until your Reports
item, who is #6! And you have to add 1 to other menu because you inserted
your page between to others! (Then Images could be #7, about page #8)...

Hope this help!

Regards,
Jacques
Title: Re: WeatherBlues V2 Menu Buttons
Post by: Pete on January 26, 2013, 06:14:20 AM
HI Jacques,
It's so easy -  when you know where to look!!  :D

Thanks for your prompt reply.

Kind regards  .......... Pete
Title: Re: WeatherBlues V2 Menu Buttons
Post by: uncle_bob on February 02, 2013, 04:57:48 PM
Thanks Pete and Jacques.
I had the same problem but hadn't worried too much about it and now it's fixed :)
Title: Re: WeatherBlues V2 Menu Buttons
Post by: Andy9164 on November 06, 2013, 06:49:32 PM
Should have looked here 4 hours ago.

Has kept me "amused" for the evening  :))

Andy