Scrolling on reply url

I have installed BBPress and anonymus subscription plugins for my forum. The problem is, if a user recived an email that notify him that he recived a reply to his topic/answer, after he press on the button from that email to go on his question/answer, the page scroll to the end of the post not at the beginning. Is somebody who can help me with this

$reply_url     = bbp_get_reply_url( $reply_id );
a style=padding:10px; text-decoration:none; background:#66BB6A; font-family: Open Sans; font-style: normal; font-weight: bold; font-size: 12px; line-height: 20px; border-radius: 73px; color:white; letter-spacing: 1px; width:190px; display:block; text-align:center;  href='.$reply_url.'Read answera/

This is a part from the code. The link will be: www.mysite.com/forum/questionName/#post-postNumber

Topic bbpress subscription forum Wordpress

Category Web


You could remove the #postNumber part from the url, you can do something like this

$reply_url = explode('#', bbp_get_reply_url($reply_id))[0];

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.