Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Wordpress: Back button

  • 16-11-2018 3:46pm
    #1
    Posts: 0


    Hi,
    I would like to create a back button on my site which I have found some widgets capable, however, I am using SiteOrigin buttons and would like to continue using the same format.
    Can anyone help with code I can place within the button to go back a page?


Comments

  • Registered Users, Registered Users 2 Posts: 6,570 ✭✭✭daymobrew


    What exact problem are you trying to solve?
    Would breadcrumb navigation work?

    Can't the user simply use the brower's Back button?
    Or you could create a button with a href for javascript(back(-1)) or whatever the basic code is.


  • Registered Users, Registered Users 2 Posts: 16,414 ✭✭✭✭Trojan


    daymobrew wrote: »
    Or you could create a button with a href for javascript(back(-1)) or whatever the basic code is.

    Yep:
    <button onclick="window.history.back()">Back</button>
    
    or
    <button onclick="window.history.go(-1)">Back</button>
    
    (You can change the parameter value.)
    daymobrew wrote: »
    What exact problem are you trying to solve?
    Would breadcrumb navigation work?

    Can't the user simply use the brower's Back button?

    This is the more important issue.

    Is there a problem with your site navigation? Maybe you need to work on the navigation links.


Advertisement