• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Linking the Titlebar

#1
Hi

We are using a background image in the titlebar field, is there anyway to place a hyperlink against this image? For example, I want to use the graphic to explain why people should sign up and then for them to click on the image and get directed to the sign up page :)
Any pointers would be awesome, thanks
 

Brogan

XenForo moderator
Staff member
#2
I'm not sure what you mean by the titlebar field, but you can use standard html to link an image: <a href=.....>

For example, this is the code for the header logo:
Code:
<a href="http://xenforo.com/">
<span></span>
<img src="http://xenforo.net/community/styles/default/xenforo/logo.png" alt="XenForo Community">
</a>
 

Brogan

XenForo moderator
Staff member
#4
Just wrap it in an a href then as I posted above, e.g.

Code:
<a href="{xen:link 'register/'}"><img src="path-to-image"></a>
 
#5
Cool, but where do I paste the code? I've added html into the sidebar etc for adding our own images etc but the titlebar seems pretty integral to things so rather than just poke it about I thought I'd ask ;)
Thanks for all your help too, much appreciated
 

Brogan

XenForo moderator
Staff member
#6
Edit the forum_list template.

Replace the first line <xen:h1>{$xenOptions.boardTitle}</xen:h1> with this:
Code:
<xen:h1></xen:h1>
<a href="{xen:link 'register/'}"><img src="path-to-image" alt="Title"></a>
<span></span>
</a>
Change the code to suit your image path, alt name, etc.