Hi,
I was wondering if a simplier solution can be found to my problem.
I need to remove the "Bookmark the permalink." from postfooter.
So, I can remove it from the code below, but seems to be too much code for what I want to do. Is there an easier way to remove that?
function childtheme_override_postfooter_postconnect() {
$postconnect = __('. Bookmark the ', 'thematic') . '<a href="' . apply_filters('the_permalink', get_permalink()) . '" title="' . __('Permalink to ', 'thematic') . the_title_attribute('echo=0') . '">';
$postconnect .= __('permalink', 'thematic') . '</a>.';
if ((comments_open()) && (pings_open())) { /* Comments are open */
$postconnect .= ' <a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('Post a comment', 'thematic') . '</a>';
$postconnect .= __(' or leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif (!(comments_open()) && (pings_open())) { /* Only trackbacks are open */
$postconnect .= __(' Comments are closed, but you can leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif ((comments_open()) && !(pings_open())) { /* Only comments open */
$postconnect .= __(' Trackbacks are closed, but you can ', 'thematic');
$postconnect .= '<a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('post a comment', 'thematic') . '</a>.';
} elseif (!(comments_open()) && !(pings_open())) { /* Comments and trackbacks closed */
$postconnect .= __(' Both comments and trackbacks are currently closed.', 'thematic');
}
// Display edit link on single posts
if (current_user_can('edit_posts')) {
$postconnect .= ' ' . thematic_postfooter_posteditlink();
}
return apply_filters('thematic_postfooter_postconnect',$postconnect);
}
Thank you