
Originally Posted by
Argent
Hi Guys,
Top of page code inside footer.php: <div id="upArrow"><a href="current-page.php#top"></a></div>
Am I on the right track here? -> <?php get_page( $page_id ) ?>
If you don't use <base href="..."> in your documents then you don't need the current page at all, just use this:
Code:
<div id="upArrow"><a href="#top"></a></div>
If you use <base href> then $_SERVER['REQUEST_URI'] has everything you need for the link:
Code:
<div id="upArrow"><a href="<?=htmlspecialchars($_SERVER['REQUEST_URI']) ?>#top"></a></div>
Bookmarks