so in a different forum, someone helped me create the following code in my child folder's function.php file, which did the trick:
PHP Code:
<?php
add_action( 'after_setup_theme', 'child_theme_setup' );
/** This function will hold our new calls and over-rides */
if ( !function_exists( 'child_theme_setup' ) ):
function child_theme_setup() {
/*
We want a Second Navigation Bar right at the top
This theme uses wp_nav_menu() in two locations.
*/
register_nav_menus( array(
'secondary' => __( 'Top Navigation', 'twentyten' ),
) );
}
endif;
/* We want the Posted On date to show, but not the author. */
function twentyten_posted_on() {
printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep"></span> %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf('')
);
}
but now i have a similar functionality that I want to get cleared up, but am unable to figure out how to do so. on the category pages of the site (example: http://greenrefurbishing.com/wordpre...egory/coupons/), below the excerpt it shows Posted In: Category XYZ | Leave a comment. I want to remove everything after Category XYZ, in red above.
But in this instance, the code that creates this functionality, as far as i can tell, is found in lines 157-161 of the loop.php file of the parent folder.
PHP Code:
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-utility -->
so in this instance, do i also add something to the child's functions.php file to cancel out this function???
Bookmarks