Use code block to add text that respects your spacing and tabs — perfect for displaying code. With our Stag Blocks plugin, code block is notched up for syntax highlighting based on the language and you can also display line numbers.
Block Options
- Syntax Language for highlight
- Show line numbers
Block Preview
wp.customize( 'header_textcolor', function( value ) {
value.bind( function( to ) {
if ( 'blank' === to ) {
$( '.site-title, .site-description' ).css({
'clip': 'rect(1px, 1px, 1px, 1px)',
'position': 'absolute'
});
} else {
$( '.site-title, .site-description' ).css({
'clip': 'auto',
'position': 'relative'
});
$( '.site-title a, .site-description' ).css({
'color': to
});
}
});
});