If you want to change the doctype for your site, add a namespaced attribute to the html element, or do some other changes to the boilerplate text, then its quite easy.
The following adds a Facebook Open Social attribute to the html element.
Open up the functions.php file in your child theme and add the following code. The code should be entered at the end of the file, just before the closing ?> if there is one.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
Alternatively, you may want to switch to the XHTML 1.0 Strict Doctype (be aware that there may be occurrences elsewhere in Genesis which uses code valid for Transitional doctype, but invalid for Strict):
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
many thanks for this code gary…it helped me a lot in changing my doctype. at first i was hooking the new doctype codes in the header and soon realized that there were duplicate html tags created because genesis parent theme already was generating the doctype so finally stumbled upon ur post and implemented it successfully…many thanks