Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Add a link to my logo in vanilla?

I'm using the blackdiamond theme and have inserted my logo on the top left but can't seem to get this to link back to my home page? Any help appreciated!

Comments

  • You added the logo as a background, right?

    I would recommend to add the logo at the Settings > Application Settings page under 'Banner title'. There you can easily link it.
  • edited January 2007
    Hi, I'm trying to do the same... I'm using a little modified default theme with background image in the header. http://www.e-participacija.si/kamnik I made new div in menu.php and used css to make the div behave like link to some other page: --------------- menu.php: echo '<div id="Logo"> <a href=\"".GetUrl($Configuration, "/")."\"></a> </div>'; -------------- vanilla.css: #Logo { display: block; position:absolute; width:175px; height:60px; top:15px; left:30px; cursor: pointer; } The problem is, that i don't have any knowledge in Vanilla syntax and don't know how to put custom link in the "Logo" div. Ordinary html <a href...> doesn't work... :(
  • edited January 2007
    @Tex: Thank you for that tip. I forgot that you can add html tags in the banner title. One limitation is that it stays with the css that styles the forum banner title. You would then have to change the stylesheet to position it that way you want. Have you tried the StuffDisplayer extension? That might help. I thought I would actually try this with StuffDisplayer and it worked very well. The only problem will be getting it exactly where you want it positionally on your forum page. It may also take some css work.
  • @jimw: thx, but i don't know if i want to go with StuffDisplayer and additional css work. I would like to make link inside header. (StuffDisplayer does it above and under the header). I have positioned my "logo" div perfectly over background picture, the problem is how to tell the div to go on external url when I click on it. any suggestions what sytax should I use? Is something like this even possible? in menu.php (themes) i have: echo '<div id="Logo"> <a href="'.GetUrl($TargetUrl, "http://www.kamnik.si").'">'.$this->Context->GetDefinition('SignInAgain').'</a> </div>'; the external link works, but i have no idea, how to make the div linkable and not the text inside the div bummer...
  • the external link works, but i have no idea, how to make the div linkable and not the text inside the div

    'display:block;' should do it
This discussion has been closed.