WordPress.org

Ready to get started?Download WordPress

Forums

Thematic
[resolved] 1.0.3.1 broke child theme (4 posts)

  1. NickArmstrong
    Member
    Posted 1 year ago #

    Howdy --- I just upgraded to 1.0.3.1 and noticed an error in our validation.

    Error reported: `<div id="post-5" class="<br />
    <b>Warning</b>: Missing argument 1 for thematic_post_class(), called in /home/gravity1/public_html/wp-content/themes/g1020/growler-fw-page.php on line 45 and defined in <b>/home/gravity1/public_html/wp-content/themes/thematic/library/extensions/dynamic-classes.php</b> on line <b>426</b><br />
    ">`

    Code in child theme:

    echo '<div id="post-' . get_the_ID() . '" ';
    					// Checking for defined constant to enable Thematic's post classes
    					if ( ! ( THEMATIC_COMPATIBLE_POST_CLASS ) ) {
    						post_class();
    						echo '>';
    					} else {
    						echo 'class="';
    						thematic_post_class();
    						echo '">';
    					}

    What do I need to do to fix this?

    Thanks for your time! :-)

  2. Gene
    Member
    Posted 1 year ago #

    We deprecated the thematic_post_class() function in favor of WordPress's post_class function. I think you need to look at the page.php template and integrate those changes into your child theme's custom page template

    Look for:


    // action hook for placing content above #post
    thematic_abovepost();
    ?>

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?> >

    <?php

    // creating the post header
    thematic_postheader();
    ?>

    <div class="entry-content">

  3. NickArmstrong
    Member
    Posted 1 year ago #

    Awesome - that did the trick, thanks! :-)

  4. Gene
    Member
    Posted 1 year ago #

    Great!

    Mark the thread as resolved when you have the time. It'd also be awesome if you could take a moment or two to submit a review of your experience with the theme.

    http://wordpress.org/support/view/theme-reviews/thematic

    For future reference you can also find support for Thematic over here:

    http://thematictheme.com/forums

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.