Author Topic: WeatherBlues V2 Menu Buttons  (Read 7020 times)

Offline Pete

  • Jr. Member
  • **
  • Posts: 24
    • Fordingbridge Weather
WeatherBlues V2 Menu Buttons
« 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

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: WeatherBlues V2 Menu Buttons
« Reply #1 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
Please, consider supporting this site 

Offline Pete

  • Jr. Member
  • **
  • Posts: 24
    • Fordingbridge Weather
Re: WeatherBlues V2 Menu Buttons
« Reply #2 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

Offline uncle_bob

  • Full Member
  • ***
  • Posts: 61
    • Conder Weather, Canberra
Re: WeatherBlues V2 Menu Buttons
« Reply #3 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 :)

Offline Andy9164

  • Full Member
  • ***
  • Posts: 87
    • Midlifedad
Re: WeatherBlues V2 Menu Buttons
« Reply #4 on: November 06, 2013, 06:49:32 PM »
Should have looked here 4 hours ago.

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

Andy