Support » Theme: Responsive » [Bug] Invalid hatom-entry structure

  • Hi

    I’m experiencing 2 issues with Google’s rich snippet validator with Responsive theme version .

    1. The hatom-entry structure in the function responsive_post_meta_data() is malformed :

    • The modification time is set as the bookmark name, instead of the title
    • The updated date format is incorrect, must be ISO 8601, has localized date instead (3 janvier, 2014)

    Here is the fixed function:

    function responsive_post_meta_data()
    	printf( __( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'responsive' ),
    			'meta-prep meta-prep-author posted',
    			sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="timestamp updated"><span class="value-title" title="%3$s"></span>%4$s</span></a>',
    					 esc_url( get_permalink() ),
    					 esc_attr( get_the_title() ),
    					 esc_html( get_the_date('c')),
    					 esc_html( get_the_date() )
    			sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    					 get_author_posts_url( get_the_author_meta( 'ID' ) ),
    					 sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ),
    					 esc_attr( get_the_author() )

    2. The second issue is in header.php : the hfeed class in the container div should be enabled only for singular pages (post, page, attachment…), otherwise the validator triggers an error

    <div id="container"<?php if (is_singular()) echo ' class="hfeed"'; ?>>

    I fixed this in my child theme but it would be great to have this fixed in the next reponsive version.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Bug] Invalid hatom-entry structure’ is closed to new replies.