Blog / Thematic / Thematic PHP constants

Thematic PHP constants

Cristian Antohe
Last Updated: 27/01/11

With Thematic 0.9.7.7 there are a couple of changes made to the way it works. One of those changes was the inclusion of a few constants, that based on their value lets you chose whether you want the default WordPress functionality or the more powerful (and complex) Thematic functionality.

I’m talking here about whether you want to make use of the following:

  • Thematic body class
  • Thematic post class
  • Thematic comment form
  • Thematic feedlinks
  • Thematic’s handling of comments

These constants should be setup inside your childtheme’s functions.php file like so:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Unleash the power of Thematic's dynamic classes
// 
 define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
 define('THEMATIC_COMPATIBLE_POST_CLASS', true);
 
// Unleash the power of Thematic's comment form
//
 define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
 
// Unleash the power of Thematic's feed link functions
//
 define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
 
// Unleash the power of Thematic's comment handling
//
 define('THEMATIC_COMPATIBLE_COMMENT_HANDLING', true);

Hope someone finds these things useful.

From the blog

Related Articles

Multilingual WordPress – WPML Plugin Review

Author: Cristian Antohe
Last Updated: July 1st, 2020

Since writing this article we developed TranslatePress, a frictionless WordPress multilingual plugin that lets you translate all your site content directly from the front-end, using a super intuitive UI. Download it for free and go multilingual, the easy way. Photo by derSven One of the hardest things to do with Wordpress is creating a multilingual […]

Continue Reading

Multilingual solutions for a wordpress installation

Author: Cristian Antohe
Last Updated: December 7th, 2021

Since writing this article we developed TranslatePress, a frictionless WordPress multilingual plugin that lets you translate all your site content directly from the front-end, using a super intuitive interface. Download it for free and go multilingual, the easy way. Photo by mykreeve From my point of view the internet has became a really crowded place. […]

Continue Reading

WordPress Developer Tools

Author: Cristian Antohe
Last Updated: January 5th, 2012

During the last 3 years while providing web-design and development solutions to our clients over at Reflection Media, we're tried our best to optimize our processes and development time by reusing code, creating a database of often used code snipets and constructing generalist plugins when possible. While this didn't always work out as expected, we've […]

Continue Reading

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.