ThemeShaper Forums » Thematic

[closed]

Theme Hook for Author Box Above Comments

(2 posts)
  • Started 4 years ago by sfrangos
  • Latest reply from Chris
  • This topic is not resolved
  1. Hi -

    I want to add a new theme hook in functions.php for a child theme to create and style an author box, after the post but above the comments area. I have been testing one, but the test is not showing yet:


    // --------------- NEW FUNCTION --------------------------- //

    // Add Function for Author Section
    function childtheme_author_section() {

    { ?>

    <!-- our Author items start here -->
    <div id="authorbox">
    <h1>Yo Author</h1>
    </div>
    <!-- our Author items end here -->
    <?php }

    } // end of our new function childtheme_contact_blurb

    // Now we add our function to our Thematic Action Hook
    add_action('thematic_abovecommentsform','childtheme_author_section', );

    I will end up using php to call in either a vcard, or the author description fields from user profiles, but so far even the test headline, "Yo Author" does not show.

    Your advice will be appreciated.

    Thanks -
    Scott

    Posted 4 years ago #
  2. Hi Scott,

    change the last line to:

    add_action('thematic_abovecommentsform','childtheme_author_section');

    Chris

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.