ThemeShaper Forums » Thematic


Customizing post_footer

(2 posts)
  • Started 10 years ago by 4rederick
  • Latest reply from 4rederick
  • This topic is not a support question
  1. I want to remove the option for a reader to bookmark the permalink and leave a trackback at the end of comments, which shows up as an option on single post pages. I only want the reader to have the option to leave comments.

    I disabled the trackback options in the Wordpress Dashboard discussion settings, but that doesn't seem to have any effect.

    Here is how my child-theme's function.php reads regarding my postfooter. Thank you for the help. I'm an excited newbie ...

    function childtheme_postfooter() {
    global $post;

    if (is_single()) { ?>
    <div class="entry-utility">
    <?php printf(__('Bookmark the permalink.', 'thematic'),
    wp_specialchars(get_the_title(), 'double') ) ?>

    <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Comments and trackbacks open ?>
    <?php printf(__('Post a comment or leave a trackback: Trackback URL.', 'thematic'), get_trackback_url()) ?>
    <?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Only trackbacks open ?>
    <?php printf(__('Comments are closed, but you can leave a trackback: Trackback URL.', 'thematic'), get_trackback_url()) ?>
    <?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Only comments open ?>
    <?php printf(__('Trackbacks are closed, but you can post a comment.', 'thematic')) ?>
    <?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Comments and trackbacks closed ?>
    <?php _e('Both comments and trackbacks are currently closed.') ?>
    <?php endif; ?>
    <?php edit_post_link(__('Edit', 'thematic'), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>"); ?>

    </div><!-- .entry-utility -->
    <?php } else { ?>
    <?php if ( $post->post_type == 'post' ) { // Hide entry utility on searches ?>
    <div class="entry-utility">
    <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'thematic'), __('1 Comment', 'thematic'), __('% Comments', 'thematic')) ?></span>
    <?php edit_post_link(__('Edit', 'thematic'), "\t\t\t\t\t<span class=\"meta-sep\"></span>\n<span class=\"edit-link\">", "</span>\t\t\t\t\t"); ?>
    </div><!-- .entry-utility -->
    <?php } ?>
    <?php }
    add_filter ('thematic_postfooter', 'childtheme_postfooter');

    Posted 10 years ago #
  2. and my site is

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.