You appear to be a bot. Output may be restricted
Description
Displays SVG icons in the footer navigation.
Usage
$string = twenty_twenty_one_nav_menu_social_icons( $item_output, $item, $depth, $args );
Parameters
- $item_output
- ( string ) required – The menu item's starting HTML output.
- $item
- ( WP_Post ) required – Menu item data object.
- $depth
- ( int ) required – Depth of the menu. Used for padding.
- $args
- ( stdClass ) required – An object of wp_nav_menu() arguments.
Returns
string The menu item output with social icon.
Source
File name: twentytwentyone/inc/menu-functions.php
Lines:
1 to 11 of 11
function twenty_twenty_one_nav_menu_social_icons( $item_output, $item, $depth, $args ) { // Change SVG icon inside social links menu if there is supported URL. if ( 'footer' === $args->theme_location ) { $svg = twenty_twenty_one_get_social_link_svg( $item->url, 24 ); if ( ! empty( $svg ) ) { $item_output = str_replace( $args->link_before, $svg, $item_output ); } } return $item_output; }