• Hi, I am trying to add a button to blog single post title area and can’t find any solution. I want to add a button (i have a single post title area set up with taxonomie and tags of the post (centered in the middle) and in the left I want to add a arror button back) for people to easily go back from any post in my website. Is it even possible to do?

    • This topic was modified 2 days, 10 hours ago by mykoliux.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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:

    1. 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.
    2. 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

    Thread Starter mykoliux

    (@mykoliux)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.