• Resolved hopper212

    (@hopper212)


    Hello,

    I tried searching for an answer to this but came up short. I would like to remove the download button in the audio player and on the sermon posts. Is that possible?

    Thanks
    Phil

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @hopper212,

    As a matter of fact, we actually want to add a download button to it – since Sermon Manager doesn’t have one.
    You must be some kind of magician. 😉

    I assume that you are talking about this download button:

    We currently don’t have an option to disable it, but here’s a workaround:

    .wpfc-sermon-player::-internal-media-controls-download-button {
        display:none;
    }
    
    .wpfc-sermon-player::-webkit-media-controls-enclosure {
        overflow:hidden;
    }
    
    .wpfc-sermon-player::-webkit-media-controls-panel {
        width: calc(100% + 30px); /* Adjust as needed */
    }

    Just put this code into your template’s CSS field or at the end of /wp-content/themes/<active_theme_name>/style.css (replace <active_theme_name> with your theme name)

    Also, that player should not be showing. Did you manually disable our player (by editing code)?

    Thank you for your patience

    Thread Starter hopper212

    (@hopper212)

    Hey @nikolam!

    Thanks for getting back to me, and yes that’s the exact button I’d like to remove. Will try your code this afternoon as I want to give you a quick chance to look at the page yourself. I’m not a web designer myself I just took over the role from a member who was in charge of the site and I’m trying my best to learn all this stuff so this is a good help.
    The page I’m editing is http://portadownelim.com/sermons (Please don’t judge as I’ve just started and have literally just thrown [sermons] onto a page and hit upload (Not a publicly advertised page, I’m just using it for testing)).

    Feel free to take a look if you want, if you don’t think it’s displaying as it should I might try doing a fresh install of the plugin.

    Also when you click a sermon to go into it, it shows another download mp3 button, assuming this code doesn’t remove that as it specifies sermon-player, is there code to remove that?

    Thanks so much
    Phil

    Hey, thanks for quick response!

    I checked out the link, thanks for that, and my advice is to not add the CSS code I sent since sermons page will have the exact player as the one when you open a single sermon. That behavior is fixed internally, and it will be published by the end of the week. So, just leave the player as is for now and please wait for the fix. 🙂

    Or, if you can’t/won’t wait, you can apply the fix by hand right now:
    1) Open /wp-content/plugins/sermon-manager-for-wordpress/includes/shortcodes.php
    2) Go to line 607 (function displaySermons( $atts = array() ) {)
    3) Make a new empty line and put if ( ! defined( 'SM_ENQUEUE_SCRIPTS_STYLES' ) ) { define( 'SM_ENQUEUE_SCRIPTS_STYLES', true ); }

    New player should load on the page where all sermons are, alongside some of our styling (which can be overridden via CSS).

    Let us know how you go and if you have any other questions – do not hesitate to ask us! 😀

    Thread Starter hopper212

    (@hopper212)

    Thanks for the update @nikolam, I’m in no rush to get it removed so I’ll happily wait for an update.

    Have a great day 🙂

    Hey @hopper212,

    Just to let you know that update is out.

    Have a great day as well 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove Download button in audio player’ is closed to new replies.