Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

how to add link to banner image

Hi

installed vanilla today, quite impressed.. Ive changed it alot in just a few hours, needs some more style tweeks.. but I'm kind of stumped on the php side..

I need to add a link to my banner image, can anyone tell me which sheet I need to add it to and if its php how do I add it. i.e what string of code do I write.

heres the forum: http://www.terragnosis.co.uk/forum/ and I want to link back to: http://www.terragnosis.co.uk/index.shtml

Thanks

Comments

  • Options
    peregrineperegrine MVP
    edited May 2013

    Either use addmenu item plugin or modify default.master.tpl or default.master.php or modify themehooks or read documentation on how to modify theme on the wiki or use whu606's annotated css plugin or search for them modification or css on wiki or forum.

    multiple ways.

    on second read, do you want to click on banner and go home???

    change the link path in default.master.tpl of your customized theme.

        <h1><a class="Title" href="{link path="http://www.terragnosis.co.uk/index.shtml"}"><span>{logo}</span></a></h1>
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    thanks.. that was it.. click the banner to go home ;)

    sadly when I insert the code as requested..

    <?php echo Gdn_Theme::Logo(); ?>


    the end result is the link taking me to a page that does not exist and an error message :(

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2013

    You have a php theme so the code p gave is not gonna work like that well the way you inserted it likely not with any theme. If you copy the code remove the spaces I added between the < > so they show here.

    what you need is to put it like this if you have a default.master.php

    < h1 >< a class="Title" href="http://www.terragnosis.co.uk/forum/" target="_blank"  >< span >< ?php echo Gdn_Theme::Logo(); ? >< /span >< /a >< /h1 >
    
  • Options

    thats done it.. awesome. many thanks.
    ;)

  • Options
    peregrineperegrine MVP
    edited May 2013

    V, another rescue

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Even I was thinking to add a link to the banner image but was facing some difficulty. Hope this helps for me too...

Sign In or Register to comment.