Last active
October 11, 2021 08:12
-
-
Save rocket-martue/8e0620a390772da19253af12234a1ebd to your computer and use it in GitHub Desktop.
投稿一覧の .c-entry-summary__titleを h2 に変更
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 投稿一覧の .c-entry-summary__titleを h2 に変更 | |
* | |
* @param string $args 文字列. | |
*/ | |
add_filter( | |
'snow_monkey_get_template_part_args_template-parts/loop/entry-summary/title/title', | |
function ( $args ) { | |
$args['vars']['_title_tag'] = 'h2'; | |
return $args; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment