Hi @mcfarnell,
Sorry for the delay, I had to code a feature first to have this possible to do, in a less-hacky way, but it… took a bit.
Anyway, once Sermon Manager 2.13.0 is released, there will be new files in /views
directory, you’ll need to copy them to your theme, specifically content-sermon-single.php
and content-sermon-attachments.php
.
After that, please add the following code after </strong>
, in content-sermon-attachments.php
:
<?php if ( get_wpfc_sermon_meta( 'sermon_audio' ) ) : ?>
<a href="<?php echo get_wpfc_sermon_meta( 'sermon_audio' ); ?>"
class="sermon-attachments"
download="<?php echo basename( get_wpfc_sermon_meta( 'sermon_audio' ) ); ?>">
<span class="dashicons dashicons-media-audio"></span>
<?php echo __( 'MP3', 'sermon-manager-for-wordpress' ); ?>
</a>
<?php endif; ?>
And please replace the code on line 103, in content-sermon-single.php
, with:
<?php if ( get_wpfc_sermon_meta( 'sermon_notes' ) || get_wpfc_sermon_meta( 'sermon_bulletin' ) || get_wpfc_sermon_meta( 'sermon_audio' ) ) : ?>
That should do it. ??