Home>Support>Insert Back Button in Header area
  1. 9 years, 26 days ago Andrew Misplon
    Hi, I Work Here

    Hi Katerina

    Thanks for reaching out.

    Try going to Appearance > Widgets > Header and inserting a Text widget.

    Insert the following into the Text widget:

    <button onclick="goBack()">Go Back</button>
    
    <script>
    function goBack() {
        window.history.back();
    }
    </script>
    

    Just tested it now. Should do the trick.

  2. 9 years, 25 days ago katerina

    Hi Andrew yes i tested but i want to use siteorigin button widget to design it. Is it difficult?Thank you

  3. 9 years, 25 days ago Andrew Misplon
    Hi, I Work Here

    Sure.

    Insert a Text widget into the header and insert:

    <script>
    function goBack() {
        window.history.back();
    }
    </script>
    

    Insert a button widget and open the tab Other attributes and SEO and insert into the OnClick field:

    goBack()
    

    You can leave the URL blank.

    Finally, go to Appearance > Custom CSS and insert:

    /* Header */
    
    #header-sidebar a {
    cursor: pointer;
    }
    

    Hope that helps :)

  4. 9 years, 25 days ago katerina

    Thank you Andrew it works but the cursor is not hand when it hovers the button.

  5. 9 years, 25 days ago Andrew Misplon
    Hi, I Work Here

    Sure. Not at my computer right now. To confirm the CSS I sent is inserted at Appearance > Custom CSS?

  6. 9 years, 25 days ago katerina

    I inserted in style.css on child theme folder.Also when i click the button, it shakes a little bit.

  7. 9 years, 25 days ago katerina

    now i can see the hand when i hover the button. the shaking remains and also it returns back not on top of the previous page but in the height of page that cursor was.

  8. 9 years, 25 days ago Andrew Misplon
    Hi, I Work Here

    Hi Katerina

    Do you have a public URL where we can take a look at what’s going on? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.

  9. 9 years, 21 days ago Private Message - katerina

    This is a private message.

  10. 9 years, 21 days ago Andrew Misplon
    Hi, I Work Here

    Sure. When it comes to user roles it’s best to use a plugin. This one should hopefully do the job nicely. I’ve used it in the past:

    https://en-za.wordpress.org/plugins/peters-login-redirect/

  11. 9 years, 21 days ago Private Message - katerina

    This is a private message.

  12. 9 years, 21 days ago Andrew Misplon
    Hi, I Work Here

    Ok got you. If possible, in forum threads, could you perhaps save private reply for sending sensitive info? Thanks. Unfortunately, we’re not able to assist with custom development beyond helping out with really basic little snippets. If you need developer assistance we highly recommend Codeable.

  13. 9 years, 21 days ago katerina

    Thank you Andrew

  14. 9 years, 20 days ago Andrew Misplon
    Hi, I Work Here

    For sure.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More