- This topic has 3 replies, 3 voices, and was last updated 5 years, 6 months ago by
Tom.
-
AuthorPosts
-
August 4, 2015 at 6:01 pm #126557
Joseph
Having an issue removing “ABOUT” from the post title on pages using the Co-Author Plus plugin, You can see here on this page or any author page:http://patronmagazine.com/author/patronadmin/
How can I remove the “ABOUT” from the title?
Thanks!
FYI
In using Co-Author Plus with the GP theme. This was added to my child function.php in order to pickup a secondary author or phoographer in this case.if ( ! function_exists( ‘generate_posted_on’ ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function generate_posted_on() {if ( ‘post’ !== get_post_type() )
return;$time_string = ‘<time class=”entry-date published” datetime=”%1$s” itemprop=”datePublished”>%2$s</time>’;
if ( get_the_time( ‘U’ ) !== get_the_modified_time( ‘U’ ) )
$time_string .= ‘<time class=”updated” datetime=”%3$s” itemprop=”dateModified”>%4$s</time>’;$time_string = sprintf( $time_string,
esc_attr( get_the_date( ‘c’ ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( ‘c’ ) ),
esc_html( get_the_modified_date() )
);
if ( function_exists( ‘coauthors_posts_links’ ) ) :
printf( __( ‘<span class=”posted-on”>%1$s</span> <span class=”byline”>%2$s</span>’, ‘generate’ ),
sprintf( ‘%3$s‘,
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
$time_string
),
coauthors_posts_links( null, null, null, null, false )
);
else :
printf( __( ‘<span class=”posted-on”>%1$s</span> <span class=”byline”>%2$s</span>’, ‘generate’ ),
sprintf( ‘%3$s‘,
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
$time_string
),
sprintf( ‘<span class=”author vcard” itemtype=”http://schema.org/Person” itemscope=”itemscope” itemprop=”author”>%1$s <span class=”author-name” itemprop=”name”>%4$s</span></span>’,
__( ‘by’,’generate’),
esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
esc_attr( sprintf( __( ‘View all posts by %s’, ‘generate’ ), get_the_author() ) ),
esc_html( get_the_author() )
)
);
endif;
}
endif;August 4, 2015 at 11:37 pm #126642Tom
Lead DeveloperLead DeveloperTo do this, you’ll have to use a child theme.
1. Copy archive.php from GP into your child theme.
2. Open the child theme version of archive.php, and remove “About” from line 33.
That should do it π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 5, 2015 at 4:04 am #126725Joseph
Tom, that worked, you’re the greatest, time to tweet about GP!!!
August 5, 2015 at 10:07 am #126840Tom
Lead DeveloperLead DeveloperThanks! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.