• Resolved Rodrigo

    (@rghedin)


    Hi,

    I don’t use the HTML5 player and yet SSP loads a bunch of files that I’d like it didn’t. These:

    		<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,700&v=1.20.9"/>
    		<link rel="stylesheet" href="https://manualdousuario.net/wp-content/plugins/seriously-simple-podcasting/assets/css/icon_fonts.css?v=1.20.9"/>
    		<link rel="stylesheet" href="https://manualdousuario.net/wp-content/plugins/seriously-simple-podcasting/assets/fonts/Gizmo/gizmo.css?v=1.20.9"/>
    		<link rel="stylesheet" href="https://manualdousuario.net/wp-content/plugins/seriously-simple-podcasting/assets/css/frontend.css?v=1.20.9"/>
    		<script src="//cdnjs.cloudflare.com/ajax/libs/wavesurfer.js/1.4.0/wavesurfer.min.js?v=1.20.9"></script>

    I couldn’t deregister them in functions.php and, honestly, have no idea how to stop SSP from loading these.

    How can I do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Rodrigo

    (@rghedin)

    Hello?

    Plugin Contributor Jonathan Bossenger

    (@psykro)

    Hi @rghedin thanks for bringing this to our attention.

    These scripts should not be loading if you haven’t enabled the HTML5 player. However this may be a bug. Please won’t you log this in our GitHub issue tracker, so that we can investigate https://github.com/TheCraigHewitt/Seriously-Simple-Podcasting/issues

    In the meantime, you can unhook the function calls which add the html5 player scripts and styles using the following code in your child theme functions.php

    global $ss_podcasting;
    remove_action( 'wp_print_footer_scripts', array( $ss_podcasting, 'html5_player_conditional_scripts' ) );
    remove_action( 'wp_print_footer_scripts', array( $ss_podcasting, 'html5_player_styles' ) );
    Thread Starter Rodrigo

    (@rghedin)

    Done: https://github.com/TheCraigHewitt/Seriously-Simple-Podcasting/issues/401

    The code worked like a charm, thanks!

    Since we’re here, could you tell me how do I remove these two other codes from SSP?

    In header:

    <link rel='stylesheet' id='ssp-frontend-player-css' href='https://manualdousuario.net/wp-content/plugins/seriously-simple-podcasting/assets/css/player.css?ver=1.20.9' type='text/css' media='all' />

    And in footer:

    		<style type="text/css">
    			.ssp-wave wave wave {
    				background: #00d4f7 !important;
    			}
    		</style>

    THanks!

    @rghedin Thanks! We’ll mark this as closed and you can follow the progress over on Github. Thanks for adding that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undesired CSS, JavaScript and Google Font loading in footer’ is closed to new replies.