Banner Image Destination URL
Hi
Is there an easy way to change the URL that people are taken to when the click on the banner image?
I've tried searching this site and also googling, but nothing I find is doing what I'm looking for.
To clarify, I still want 'all discussions' to be the page people see when they visit: http://chairexerciseisforyou.net/forum/
However, I want the banner image to instead link to:
http://chairexerciseisforyou.net/
Alternatively, if this is to complicated, what is the easiest way for me to add a 'home' button (directed to http://chairexerciseisforyou.net/) to the main nav bar on the forum?
Please go easy on me. I have taught myself html and css. I can manage javascript too where necessary. However, Vanilla is very new to me and I haven't a clue on PHP.
I can however follow instructions very well! So, if there are any for this, please can someone point me in the right direction?
Thanks,
Kerry
Best Answer
-
whu606 MVP
Don't know how to change the banner link (someone will, though) but to add a menu item open the default.master.php file in your themes/views folder. If you haven't already got a themes folder see here: http://vanillaforums.org/docs/themequickstart
Edit after this line (near the top)
if ($this->Menu) {
and add
$this->Menu->AddLink('Linkname', T('Linkname'), 'http://www.yoursite.com /pageref.html');
1
Answers
Don't know how to change the banner link (someone will, though) but to add a menu item open the default.master.php file in your themes/views folder. If you haven't already got a themes folder see here: http://vanillaforums.org/docs/themequickstart
Edit after this line (near the top)
if ($this->Menu) {
and add
$this->Menu->AddLink('Linkname', T('Linkname'), 'http://www.yoursite.com /pageref.html');
I will give it a go - thank you
Did what you said, got a link which didn't work, and changed it to:
$this->Menu->AddLink('Home', T('Home'), 'http://chairexerciseisforyou.net');
It worked perfectly - thank you
Hopefully someone will know the answer to the banner question as well!
So glad I saved this here, seeing as it disappeared when I upgraded Vanilla
Can't seem to find an answer to the original question, anyone know how to change the banner URL?
What banner url? And what banner ..you mean the logo?
There was an error rendering this rich post.
I guess emerett is referring to my first question:
... I want the banner image to instead link to:
I wanted to be able to set it to the homepage of my site, rather than anything within the forum. Didn't matter once I knew I could add a home button in, but I guess some people might still prefer to use the banner as the link to their main homepage.
Ahh ok, cheers for clearing that up.
There was an error rendering this rich post.
Is this what you mean?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Wouldnt a href="/" be better.
There was an error rendering this rich post.
if it works in his context, sure.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I think he may be a she .. Bit gay to call yaself mummypig and your a geeza lol
There was an error rendering this rich post.
I thought of the mummy - the monster - thought "it" was a "he". Saw pig and should have known otherwise it would be a boar. mummyboar - that would have been hard to decipher.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Fpmsl do you do crosswords?
There was an error rendering this rich post.
many years ago.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Ha! No, I am definitely female and a mum Mummyboar would not have worked, unless it was a transgender boar I guess.
Not sure what you mean by
I can cope with CSS and HTML, so built the main site myself with notepad and the help of Serif drawplus for creating the banner image. Easy peasy for me to set the destination URL for the banner, as you can see seeing as you quoted my code.
422 - I tend to stick with the full address because then there's less for me to change when I'm uploading new pages. If I did "/" for testing, then I'd need to change it on all the pages again when I uploaded it. I might miss something that way - especially when I am ably assisted by two toddlers wanting to "help".
Working with someone else's programming is a whole different ballgame however and I don't (yet) know where to start to change the destination URL for the banner on the forum.
That's something that would also benefit from a basic plugin.... (hint, hint)
Thanks again both of you, for your time
Oink
use
<?php echo Url('/');?>
grep is your friend.
Thanks for the reply x00
You can edit the logo URL by going to the "applications/dashboard/views/default.master.php" and then editing the H1line like the photo I provided.
No , it is not recommended to edit the default theme. The same line appears in a custom theme and that is where you would edit that line. in
themes/yourtheme/views/default.master.php
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌