Archived topic
Back button from current page to previous page
1 reply · Started by Ashia on February 13, 2023
Hi, I want to create a back button with Generateblocks pro button block. When users click the button they should be on the previous page. How do I do that?
Hi Ashia,
You can create a Button and add class back-button.
Adding Custom Classes: https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/
Then, add this script to a Hook Element hooked to wp_footer.
Script here: https://gist.github.com/ejcabquina/095e8263e1f416c87d7f399d87860cbc
For GB Pro support, please create a ticket here: https://generateblocks.com/support/