Asked
Active
Viewed 3,260 times
1 Answers
3
please go to Divi >includes > builder > functions.php file and you can find the code there.
if ( ! function_exists( 'et_pb_postinfo_meta' ) ) :
function et_pb_postinfo_meta( $postinfo, $date_format, $comment_zero, $comment_one, $comment_more ){
$postinfo_meta = '';
if ( in_array( 'author', $postinfo ) )
$postinfo_meta .= ' ' . esc_html__( 'by', 'et_builder' ) . ' <span class="author vcard">' . et_pb_get_the_author_posts_link() . '</span>';
if ( in_array( 'date', $postinfo ) ) {
if ( in_array( 'author', $postinfo ) ) $postinfo_meta .= ' | ';
$postinfo_meta .= '<span class="published">' . esc_html( get_the_time( wp_unslash( $date_format ) ) ) . '</span>';
}
Remove by and | from here > save and check.

Arghya Chowdhury
- 310
- 2
- 7
-
-
2Modifying anything in the Divi theme itself means that if you update the theme, your changes will go away. It's designed in such a way that you can literally copy/paste the `function et_pb_postinfo_meta(){ … }` function (without the `function_exists` check) straight into a child theme's `functions.php` file, or even a [Must Use Plugin](https://wordpress.org/support/article/must-use-plugins/) to make sure your changes aren't overwritten by security updates – Xhynk Jan 27 '21 at 18:20
-
@Xhynk has posted the correct answer to this question in his comment. Don't edit Divi files. Use a child theme and override them so that you don't lose them when you update Divi. – Chris May 14 '21 at 08:07