Skip to content

Instantly share code, notes, and snippets.

@Danilfilatov
Danilfilatov / Blog-1.php
Last active September 8, 2019 12:20
Wordpress Divi theme fix - show tags in Blog module + single post
/* (Go to Appearance > Editor) */
/* Code in this file and in the Blog-2.php go to Divi/includes/builder/module/Blog.php - they'll be overwritten if you update Divi. */
/* Search for class="post-meta" and you'll find two matches - one for the visual builder module version, the second for the output on the live website. */
/* Paste this code in the place of the first match (delete the old code in the file first): */
printf( '<p class="post-meta">%1$s %2$s %3$s %4$s %5$s %6$s %7$s %8$s %9$s</p>',
(
'on' === $args['show_author']
? et_get_safe_localization( sprintf( __( 'by %s', 'et_builder' ), '<span class="author vcard">' . et_pb_get_the_author_posts_link() . '</span>' ) )
: ''
),