Title: Changing php code &#8211; Validation in HTML 5?
Last modified: August 20, 2016

---

# Changing php code – Validation in HTML 5?

 *  Resolved [johanna2patricia](https://wordpress.org/support/users/johanna2patricia/)
 * (@johanna2patricia)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/changing-php-code-validation-in-html-5/)
 * 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)

 *  Thread Starter [johanna2patricia](https://wordpress.org/support/users/johanna2patricia/)
 * (@johanna2patricia)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/changing-php-code-validation-in-html-5/#post-3574951)
 * Ok managed to get the alttags in the header.php on line 226.
    So down to 2 errors
   now. Still stuck with the logo.png. No idea where to add the alt, since the only
   reference to the logo.png in the options.php doesn’t allow to add an alt.
 *  Thread Starter [johanna2patricia](https://wordpress.org/support/users/johanna2patricia/)
 * (@johanna2patricia)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/changing-php-code-validation-in-html-5/#post-3575013)
 * For everybody that wants to change this: line 73 of the header.php will become
   like this\:
    echo “[<img id=’logo-image’ src=”.$options[‘evl_header_logo’].” alt=\”$imgalt\” />](https://wordpress.org/support/topic/changing-php-code-validation-in-html-5/.home_url().?output_format=md)“;

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/evolve/4.3.7/screenshot.png)
 * evolve
 * [Support Threads](https://wordpress.org/support/theme/evolve/)
 * [Active Topics](https://wordpress.org/support/theme/evolve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/evolve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/evolve/reviews/)

## Tags

 * [html5](https://wordpress.org/support/topic-tag/html5/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 2 replies
 * 1 participant
 * Last reply from: [johanna2patricia](https://wordpress.org/support/users/johanna2patricia/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/changing-php-code-validation-in-html-5/#post-3575013)
 * Status: resolved