![]() |
Template var for the page?
Basically, I want to add a button that aims for the top of the page on each post. But I can't figure out how to make it work with threads and stuff... Basically, I have it as <a href="#top">, but I know I need something before the top... what do I need?
|
The link is on the bottom of every page. Just steal the code from it (I believe it's in the footer).
|
I know the top link in the footer, but that also only ever leads to forum home. I need it to link to the top of the current page.
|
Well, you need to add an anchor to where you want the link to take you.
Anchor: HTML Code:
<a name="yourname">whatever</a> HTML Code:
<a href="#yourname">To the Top!</a> |
Add this to the bottom of navbar template:
HTML Code:
<a name="top2"> </a> HTML Code:
<a href="#top2">Top</a> --------------- Added [DATE]1243983418[/DATE] at [TIME]1243983418[/TIME] --------------- Opps too late :p ... already poasted by Lynne |
Beat you by two minutes, Seven Skins! :D
|
Yes, but that would link to that anchor on the forumhome, not on the showthread template.
|
True ... I was testing the code before posting ... so I know for sure if it works or not.
--------------- Added [DATE]1243984077[/DATE] at [TIME]1243984077[/TIME] --------------- Quote:
I have tested it and it works on all pages ... forumhome, showthread, userCP ... |
All times are GMT. The time now is 01:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|