[theme-reviewers] Deregistering mediaelement style / script

Justin Tadlock justin at justintadlock.com
Thu Apr 10 23:05:03 UTC 2014


In general, I don't recommend disabling the JavaScript (that's probably 
always plugin territory), but the CSS is fine in many cases.  
Presentation of content is entirely within the theme's domain.

I even have a project for handling custom styling of the media player:
https://github.com/justintadlock/theme-mediaelement

Demo:
http://locallylost.com/socially-awkward/2013/09/02/big-buck-bunny/

This is referring to overwriting the entire stylesheet with a custom 
one.  I like to mix it with Genericons instead of the images packaged 
with WP.  There's no need to load WP's stylesheets (two of them) when 
completely customizing the player's design.

Just to overwrite some minor things, all that's needed is a bit of CSS 
in a theme's `style.css`.

On 4/10/2014 2:32 PM, Afzaal wrote:
> Hi,
>
> I'm currently reviewing a theme where the author is deregistering a 
> WordPress bundled stylesheet "wp-mediaelement". This is being done 
> within a custom theme class and immediately the authors own stylesheet 
> is being registered.
>
> Is there any problems with doing this? I know that deregistering some 
> scripts such as jQuery are not allowed, so thought it best to ask.
>
> Thanks,
>
> Afzaal
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers



More information about the theme-reviewers mailing list