You appear to be a bot. Output may be restricted
Description
Overwrite default more tag with styling and screen reader markup.
Usage
$string = twentytwenty_read_more_tag( $html );
Parameters
- $html
- ( string ) required – The default output HTML for the more tag.
Returns
string
Source
File name: twentytwenty/functions.php
Lines:
1 to 3 of 3
function twentytwenty_read_more_tag( $html ) { return preg_replace( '/<a(.*)>(.*)<\/a>/iU', sprintf( '<div class="read-more-button-wrap"><a$1><span class="faux-button">$2</span> <span class="screen-reader-text">"%1$s"</span></a></div>', get_the_title( get_the_ID() ) ), $html ); }