You appear to be a bot. Output may be restricted
Description
Changes the default navigation arrows to svg icons
Usage
$string = twenty_twenty_one_change_calendar_nav_arrows( $calendar_output );
Parameters
- $calendar_output
- ( string ) required – The generated HTML of the calendar.
Returns
string
Source
File name: twentytwentyone/inc/template-functions.php
Lines:
1 to 5 of 5
function twenty_twenty_one_change_calendar_nav_arrows( $calendar_output ) { $calendar_output = str_replace( '« ', is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ), $calendar_output ); $calendar_output = str_replace( ' »', is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ), $calendar_output ); return $calendar_output; }