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]
Leave a Reply