How To Add HTML 5 Code Support to The Thesis Theme for WordPress

Thesis HTML5

HTML 5 is all the rage at the moment and The Thesis theme for WordPress supports html 5 code which you may want to try out on your thesis powered WordPress site.

Login to your WordPress Dashboard and Go to Thesis >> Custom File Editor>> custom_functions.php

Simply add this code to your custom functions php file editor and save.

Caution: Always create full backup of your site before editing php code.

Note: If you make a mistake in your code while modifying a PHP file, saving this code in your custom_php.file  may result in your site becoming temporarily unusable. Prior to editing such files, be sure to have access to the file via FTP or other means so that you can correct the error.

Paste the following code into your custom_functions.php file

[php]

function html5_doctype($content) {
return ‘<!DOCTYPE html>’;
}
add_filter(‘thesis_doctype’, ‘html5_doctype’);

/* Remove PROFILE attribute from HEAD tag */
function html5_profile_removal($content) {
return ”;
}
add_filter(‘thesis_head_profile’, ‘html5_profile_removal’);
[/php]

More Custom Php Coding Resources

    1. How To Create Previous & Next Page Links
    2. How To Add a Second WordPress Navigation Menu In Thesis Using Custom PHP Script
    3. Review of the Thesis Theme for WordPress
    4. Php Scripts – A List Of The Best Php Scripts as an Alternative To Plugins

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.