Documentation for the Back Button Widget for WordPress plugin.

Documentation for Back Button Widget for WordPress Plugin

Author: WPFactory PluginsVersion: 1.6.4Updated: 7 months ago
Requires WordPress version: 4.4Tested up to WordPress version: 6.3

 


Settings

 

Back button widget is a lightweight plugin that lets you add “Back” button to your WordPress site.

After enabling the plugin, you will find new “Back Button” widget in your admin dashboard (in “Appearance > Widgets”).

Alternatively, you can use [alg_back_button] shortcode or alg_back_button() PHP function.

Widget Settings

Back Button Widget - WordPress Plugin - Widget Settings

Title
Widget’s title.
Default: None
Before button
Outputted before the button.
Default: None
After button
Outputted after the button.
Default: None
Button label
Button’s label.
Default: Back
Button HTML class
HTML class for the button. E.g. try button.
Default: None
Button HTML style
HTML style for the button. E.g. try background-color:red;.
Default: None
Button type
Button’s type. Possible values: Button; Simple text.
Default: Button
Button JS function
JavaScript function used for the button. Possible values: back; go(-1).
Default: back
Hide on front page
Sets if button should be hidden on your site’s front page.
Default: no

WPML/Polylang

For multilingual sites using WPML or Polylang, button label can be easily translated to other languages with [alg_back_button_translate] shortcode (used directly in “Button label” option):

[alg_back_button_translate lang="FR" lang_text="Retour" not_lang_text="Back"]

Or in more advanced format:

[alg_back_button_translate lang="FR"]Retour[/alg_back_button_translate][alg_back_button_translate lang="DE"]Zurück[/alg_back_button_translate][alg_back_button_translate not_lang="FR,DE"]Back[/alg_back_button_translate]