add page number to H1 in blog page
-
Hi, is it possible to add a page number to the H1 in the Blog page ? You see since I have multiple page (1,2 etc…) and the same H1 on all page, I have duplicate H1.
I added with the help of Evan this :
/** * Add additional H1 tag to blog page. * * @return mixed Markup for the additional title. */ function primer_additional_blog_h1() { if ( ! is_home() ) { return; } printf( '<h1>%s</h1>', esc_attr__( 'Google blog SEO par RankToPay', 'primer' ) ); } add_action( 'primer_after_header', 'primer_additional_blog_h1', 15 );
and the idea is to add page number after this <h1>%s</h1>
Thank’s for the help
JBThe page I need help with: [log in to see the link]
- The topic ‘add page number to H1 in blog page’ is closed to new replies.