Taro Lead Next
This plugin add a simple block to call user attention to click next page of paginated posts.
Customization
Block Settings
No coding required for basic customization. Select the block in the editor and open the sidebar (Inspector Controls) to change:
- Title: The heading text shown above the lead text. Leave empty to omit it.
- Text Alignment: Left / Center / Right / Default.
The lead text itself is edited directly and inline, just like a paragraph block.
Style
HTML structure is like this.
<div class="taro-lead-next"> <a href="%link%" class="taro-lead-next-link" rel="next"> <!-- Title will be omitted if empty. --> <p class="taro-lead-next-title"> Next Page </p> <p class="taro-lead-next-body"> Click next page and find the result! </p> </a> </div>In block editor, a.taro-lead-next-line will be <div> tag.
Default stylesheet is registered as tsln-lead-block in init hook at the priority 20.
For full customization, register your style as a same name. The style registered faster priors to plugin’s style.
Header
Default header title is “Next Page”. You can change it per block from the sidebar (see “Block Settings” above). To change the site-wide default instead, use this filter hook:
add_filter( 'tsln_next_page_default_title', function( $title ) { return "What's Next?"; } );