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

Wordpress: Back button

Options
  • 16-11-2018 4: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 Posts: 6,510 ✭✭✭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 Posts: 16,413 ✭✭✭✭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