ThemeShaper Forums » Thematic


Removing specific parts of the post-meta

(5 posts)
  • Started 10 years ago by maren.m
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. maren.m

    Hi there,

    So I'm trying to remove meta data from posts--author, category, date, etc. on both the index and single pages. I get the basic concept of removing stuff using actions, but I'm still kind of confused about how to go about FINDING the right action to remove. I've dug around in the thematic code a little bit but can't find the specifics I'm looking for.

    Also...can anyone tell me what THEMATIC_COMPATIBLE_POST_CLASS is? Just curious.


    Posted 10 years ago #
  2. vicky515

    If you want to remove it completely, there's probably a remove_action or remove_filter you can use, but I don't know it :\

    And regarding THEMATIC_COMPATIBLE_POST_CLASS - I'd love to know that myself >_>

    Posted 10 years ago #
  3. the actions are mostly in the extensions folder, the ones you are looking for are shown in content-extensions.php

    you can also use the built-in overrides for most of those.... so to override the post-meta

    function childtheme_override_postheader_postmeta(){
      return 'i just wrote bacon in place of the postmeta';

    THEMATIC_COMPATIBLE_POST_CLASS is like the dynamic body classes but for individual posts. if you enable it (define it as true i think) and then look at your site's source code you will see

    <div id="post-09" class="category and a bunch of other possible post classes that I am not uber familiar with">

    i've taken advantage of the body classes, but while i usually enable the post classes i've almost never used them

    Posted 10 years ago #
  4. maren.m

    Thanks!! Very helpful.
    Where can I learn more about these built-in overrides?

    Posted 10 years ago #
  5. you can read through the extensions folder and see where they exist. pretty much they'll be wrapped in a function that looks like

    if (function_exists('childtheme_override_special_function'))  {
    	function thematic_special_function() {
    } else {
    	function thematic_special_function() {
                   echo "bacon!";
    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.