WordPress.org

Ready to get started?Download WordPress

Forums

podPress
preventing javascript when inline player is disabled (2 posts)

  1. geolaw
    Member
    Posted 1 year ago #

    I am using podpress to provide my video/audio out to itunes. I use a different player for both mp3 and videos on the site itself.

    I notice that although I disabled the content player - podpress is still throwing all of its javascript into my html code :(

    I have disabled this by adding the following on line 727 in the podpress.php code (within the podpress_print_js_vars() function)

    if ($podPress->settings['contentPlayer'] == 'disabled') return;

    This works, but I am not sure if it impacts anything else (i doubt it)

    http://wordpress.org/extend/plugins/podpress/

  2. ntm
    Member
    Plugin Author

    Posted 1 year ago #

    Yes you can do that. podpress_print_js_vars() includes only things which are necessary for the players or player preview.

    I will probably add something like your code snippet in the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.