DEV Community

kumamon
kumamon

Posted on

【WordPress】function.phpに入れておくといいもの

function archive_navi_template($template){
    $template = '
    <nav class="navigation %1$s" role="navigation">
        <div class="nav-links">%3$s</div>
    </nav>';
    return $template;
}
add_action( 'navigation_markup_template', 'archive_navi_template' );

function new_excerpt_more($more) {
return '・・・【続きを読む】';
}
add_filter('excerpt_more', 'new_excerpt_more');

Top comments (0)