• Resolved johanna2patricia

    (@johanna2patricia)


    Hi Romik and others,
    Great theme! Thanks.
    I try to get it validated in HTML 5 and I am nearly there. I can share it with everybody once I got no errors anymore.
    I am down to 4 errors now. Maybe somebody can help me.
    3 Errors abput the missing alts for the logo.png and the lef-ar.png and the right-ar.png.
    I can’t seem to get hat sorted. Tried to add the SEO plugin for alts in images, but that didn’t work.
    The reference to logo.png is in the options.php.
    This is the code: `$options[] = array( “name” => __( ‘Custom logo’, ‘evolve’ ),
    “desc” => __( ‘Upload a logo for your theme, or specify an image URL directly.’, ‘evolve’ ),
    “id” => $evlshortname.”_header_logo”,
    “type” => “upload”,
    “std” => $template_url.”/library/media/images/logo.png”); `

    And the reference to the right-ar.png and left-ar.png are in the header.php:

    <a class='left carousel-control' href='#myCarousel' data-slide='prev'><img src='<?php echo get_template_directory_uri(); ?>/library/media/images/left-ar.png' /></a>
    <a class='right carousel-control' href='#myCarousel' data-slide='next'><img src='<?php echo get_template_directory_uri(); ?>/library/media/images/right-ar.png' /></a>

    And in the widgets.php:

    <a class='left carousel-control' href='#myCarousel' data-slide='prev'><img src='".get_template_directory_uri()."/library/media/images/left-ar.png' /></a>
    <a class='right carousel-control' href='#myCarousel' data-slide='next'><img src='".get_template_directory_uri()."/library/media/images/right-ar.png' /></a>

    I tried adding the alt tag, but that doesn’t work.
    What can I do? How to change the code?

    The 4th error is in the header.php.
    “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.”
    The lines are:

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

    I searched on the internet for answers, but so far nothing.
    If somebody that is good in php can help, I really would appreciate it.

    Johanna

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Changing php code – Validation in HTML 5?’ is closed to new replies.