You appear to be a bot. Output may be restricted
Description
Filters comment reply link to not JS scroll.
Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it makes it scroll to the wrong position on the page.
Usage
$string = twentytwenty_filter_comment_reply_link( $link );
Parameters
- $link
- ( string ) required – Link to the top of the page.
Returns
string Link to the top of the page.
Source
File name: twentytwenty/inc/template-tags.php
Lines:
1 to 6 of 6
function twentytwenty_filter_comment_reply_link( $link ) { $link = str_replace( 'class=\'', 'class=\'do-not-scroll ', $link ); return $link; }