Yes you can do it! Almost anything is possible with WordPress.
Firstly, I’d recommend you to check if the Customizer or Theme Editor has an option for this. Many times, they are options for commonly needed things provided by the theme itself.
If not, there are 2 ways to go about it:
- Create a child theme and add the small piece of code on the single post page to add the back button. Use that theme as your site theme then.
- The less recommended but a quick option is to edit the theme file directly and add the code there. Beware: this modification would be lost when you update your theme.
The 1st option is the recommended and standard way to go about it. In any case, drop a message if you need any other help!
Thanks
Thanks for the answer! Could you help me figure out where to put the code and what kind of code? I am no programmer and ChatGPT could not help me :).
I am using Astra theme and here (https://kinomaniakas.lt/sing-singo-kalejimas/) you could see my blog post with single post title area (the yellow line above with taxonomies and tags). I would really like to make a arror button on left in that single post title area. Could you help me out?
Hi
Firstly you need to figure out if it’s a classic theme or a block theme. Then you have to create a child theme. You can refer to this article for it: https://www.hostinger.in/tutorials/how-to-create-wordpress-child-theme
Once you create your child theme, you can put any customizations in it.
One method I forgot to mention was doing it using the block editor itself if it’s a Block theme. If you can add a button in the title bar, and if your theme allows executing JS, you can simply put this code in the link field:
javascript:history.back()
Do let me know what kind of them it is.
Regards