raeB Posted April 22, 2005 Share Posted April 22, 2005 Hi, I want to have a 'back to top' link in my footer, however it directs to the top of the index.php everytime, and not the page the user is on. Anyone know how to correct this? <a href="#top">BACK TO TOP </a> Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 Leon, You need to put the page name in: <a href="current_page.php#top">BACK TO TOP </a> ed Link to comment Share on other sites More sharing options...
raeB Posted April 22, 2005 Author Share Posted April 22, 2005 Leon, You need to put the page name in: <a href="current_page.php#top">BACK TO TOP </a> ed <{POST_SNAPBACK}> That won't work because my 'back to top' link is located in the footer, which exists on all pages, so I cant link pages directly. Link to comment Share on other sites More sharing options...
♥Vger Posted April 23, 2005 Share Posted April 23, 2005 You've answered your own question really. You can't use a 'back to top' link from a footer which appears on every page. Vger Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2005 Share Posted April 23, 2005 So set a variable with the name of the file in the page and use the variable in the footer. ed Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.