Techniques » Thematic

Admin Link Shortcode for Thematic Footer Text

Thematic comes with a variety of shortcodes that can be added to the footer text in the Thematic Options. We wanted to add the Admin link to the footer, but there is no predefined Thematic shortcode to do this. This technique shows how to create a custom Admin shortcode for Thematic. It is accomplished with a few lines of code in your Thematic child theme’s functions.php file. You are using a child theme, aren’t you?

First define a new function, we used thmfooter_admin_link(). (more…)

1

Using HTML5 with your Thematic Child Theme

In the interest of keeping our websites “future-proof”, I began investigating using the HTML5 DOCTYPE.

As it turns out, the switch for most WordPress themes will be trivial:

  1. Change the doctype declaration to: <!DOCTYPE html>
  2. Remove the (now defunct) profile="..." attribute from the opening <head> tag.
  3. Remove the unnecessary <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> tag.
  4. Add the <meta charset="utf-8"> tag.

Normally, this would be easily found in the header.php file of your theme. In fact, the default WordPress theme (‘TwentyTen‘ as of WP3) automatically uses the HTML5 doctype declaration.

Thematic, however, uses the traditional “XHTML 1.0 Transitional” doctype (more…)

1