1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
$prev_label = "<span class='cover--nav-label'>" . _e('Recette précédente', 'marque') . "</span>";
$prev_arrow = "<svg class='icon icon-arrow-prev' role='presentation' focusable='false'><use xlink:href='" . get_template_directory_uri() . "/images/symbol-defs.svg#icon-arrow-prev'></use></svg>";
$prev_text = $prev_label . $prev_arrow;
$next_label = "<span class='cover--nav-label'>" . _e('Recette suivante', 'marque') . "</span>";
$next_arrow = "<svg class='icon icon-arrow-next' role='presentation' focusable='false'><use xlink:href='" . get_template_directory_uri() . "/images/symbol-defs.svg#icon-arrow-next'></use></svg>";
$next_text = $next_label . $next_arrow;
the_posts_navigation( array(
'prev_text' => $prev_text,
'next_text' => $next_text,
) ); |
Partager