Support » Requests and Feedback » Add “Go Back” Button next to “View Site”

  • I added this little javascript link simulating the back button to my admin header and found it drastically increased the speed at which I navigated the site between admin and blogging functions, and made more sense in terms of process:

    <h1><?php bloginfo('name'); ?> <span> (<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('Go Home &raquo;') ?></a>) </span></h1>


    <h1><?php bloginfo('name'); ?> <span>(<a href="javascript:history.back()"><?php _e('Go back &raquo;') ?></a>) (<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('Go Home &raquo;') ?></a>) </span></h1>

    Perhaps a better application would be to use a cookie to record what page the user came from (for example, if they clicked on a link to edit their profile). Then, after they’d saved their information, they click a link that returned them to the page they were on previously. Then, if they’d edited a page or whathaveyou, instead of just clicking a back-button emulator and finding themselves at old data, they return to where they expect to be.

  • The topic ‘Add “Go Back” Button next to “View Site”’ is closed to new replies.