• Hi everybody,
    The last week I have been trying to get my site to validate according to the HTML 5 standard.
    I am down to 1 error and can’t seem to find the answer to fix that.
    This is the error:

    The profile attribute on the head element is obsolete. To declare which meta terms are used in the document, instead register the names as meta extensions. To trigger specific UA behaviors, use a link element instead.

    And these are the lines in the functions.php of my library folder(Evolve theme):

    function evlget_profile_uri( $echo = 1 ) {
    	// hAtom profile
    	$profile[] = 'https://purl.org/uF/hAtom/0.1/';
    
    	// hCard, hCalendar, rel-tag, rel-license, rel-nofollow, VoteLinks, XFN, XOXO profile
    	$profile[] = 'https://purl.org/uF/2008/03/';
    
    	$profile = join( ' ', apply_filters( 'profile_uri',  $profile ) ); // Available filter: profile_uri
    
    	if ( $echo ) echo $profile;
    	else return $profile;
    }

    I understand that the profile function is no longer supported in html 5, but what code should it be then?
    My site:

    Thanks.

    Johanna

  • The topic ‘Difficult HTML 5 validation error’ is closed to new replies.