• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.