Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize Beaver Builder Posts Module to hide author username
<?php if ( 'columns' == $settings->layout ) : ?>
<div class="fl-post-column">
<?php endif; ?>
<div <?php $module->render_post_class(); ?> itemscope itemtype="<?php FLPostGridModule::schema_itemtype(); ?>">
<?php FLPostGridModule::schema_meta(); ?>
<?php $module->render_featured_image( 'above-title' ); ?>
<div class="fl-post-grid-text">
<h2 class="fl-post-grid-title" itemprop="headline">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<?php do_action( 'fl_builder_post_grid_before_meta', $settings, $module ); ?>
<?php if ( $settings->show_comments_grid ) : ?>
<div class="fl-post-grid-meta">
<?php if ( $settings->show_comments_grid ) : ?>
<span class="fl-post-feed-comments">
<?php comments_popup_link( '0 <i class="fa fa-comment"></i>', '1 <i class="fa fa-comment"></i>', '% <i class="fa fa-comment"></i>' ); ?>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php do_action( 'fl_builder_post_grid_after_meta', $settings, $module ); ?>
<?php if ( $module->has_featured_image( 'above' ) ) : ?>
</div>
<?php endif; ?>
<?php $module->render_featured_image( 'above' ); ?>
<?php if ( $module->has_featured_image( 'above' ) ) : ?>
<div class="fl-post-grid-text">
<?php endif; ?>
<?php do_action( 'fl_builder_post_grid_before_content', $settings, $module ); ?>
<?php if ( $settings->show_content || $settings->show_more_link ) : ?>
<div class="fl-post-grid-content">
<?php if ( $settings->show_content ) : ?>
<?php $module->render_excerpt(); ?>
<?php endif; ?>
<?php if ( $settings->show_more_link ) : ?>
<a class="fl-post-grid-more" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo $settings->more_link_text; ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php do_action( 'fl_builder_post_grid_after_content', $settings, $module ); ?>
</div>
</div>
<?php if ( 'columns' == $settings->layout ) : ?>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.