Home Button link change

Post Reply
sv1jst
Newbie
Newbie
Posts: 3
Joined: Mon Sep 25, 2017 6:52 am
Station model: Oregon WMR200

Home Button link change

Post by sv1jst » Tue Dec 19, 2017 4:49 pm

Hello all
I would like to change the home button link.
www.mydomain.com/wp/meteoteplate
to
www.mydomain.com/wp/

could anyone tell me which php file i have to edit?
Image

Thank you

User avatar
polbrieuc
Advisor
Advisor
Posts: 98
Joined: Wed Dec 06, 2017 10:58 pm
Location: Vallirana
Station model: WH1080
Software: Cumulus
Contact:

Re: Home Button link change

Post by polbrieuc » Tue Dec 19, 2017 5:12 pm

For the Mobile page, it would be in mobile/menu.php, around line 435 :

Code: Select all

	<img src='<?php echo $pageURL.$path?>icons/home.png' onclick="window.location='<?php echo $pageURL.$path?>indexMobile.php'" alt="" id="mobileHomeIcon"> 
For the desktop page, it would be in the file menu.php around the line 479 :

Code: Select all

<span id="homeIcon" class="<?php echo $special?> homeIcon tooltip" style="padding-top:0.2em!important;padding-bottom:0.1em!important;padding-left:0.5em!important;padding-right:0.5em!important;font-size:2em" onclick="window.location='<?php echo $pageURL.$path?>index.php'" title="<?php echo lang("home","c")?>"> 
The best way would still be to update your general config in the path section :
Image

My two cents...
Image

sv1jst
Newbie
Newbie
Posts: 3
Joined: Mon Sep 25, 2017 6:52 am
Station model: Oregon WMR200

Re: Home Button link change

Post by sv1jst » Tue Dec 19, 2017 5:33 pm

Thanks for your response.
I tried your third suggestion, unfortunately it didn't work.
When i will have more time i will try to edit the files you mentioned and retry the third one again.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Home Button link change

Post by Jachym » Tue Dec 19, 2017 10:04 pm

Dont forget you must never update the menu though, if you update the menu it will reset all your customizations

Post Reply