2018年4月26日 7:47 AM
		
		#2267
		
		
		
	
なるほど、こちらのファイルですね…!とコピペして自分なりにfunctions.phpに追記してみましたが、なかなかうまくいきませんでした…
// ソーシャルナビゲーションのアイコンを追加する
add_filter( 'walker_nav_menu_start_el', function( $item_output, $item, $depth, $args ) {
	if ( 'social-nav' !== $args->theme_location ) {
		return $item_output;
	}
	if ( true !== strpos( $item->url, 'behance.net' ) ) {
		return str_replace( $args->link_before, '<i class="fab fa-behance-square"></i>' . $args->link_before, $item_output );
	}
}, 10, 4 );
この記述で添付の画像みたいになってしまいました…。
(PHPに疎く、かなり初歩的なところでつまづいている気がして大変恐縮なのですが、)
既にあるfunctionに対して上書き?で追加するのはどのようにしたら良いでしょうか…??
					
						
							♥						
						
							0						
					
				
				
						Who liked:
						
															No user
													
					
				