WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Pco Media Handler

Improve the markup of featured images, inline images and embeds, and make them all responsive to all screen sizes.

Are there any options?

Yes, but a settings screen hasn't been made yet. Until then you can override the default behaviour by adding a global array in your wp-config file. Here are the options with their default values...

/** Options for Pco Media Mandler */
global $pco_ih_options;
$pco_ih_options = array(
    'pco_ih_keep_p_wrap' => false,
    'pco_ih_allow_avatar_dimensions' => false,
    'pco_ih_allow_inline_image_dimensions' => false,
    'pco_ih_allow_thumbnail_dimensions' => false,
    'pco_ih_captioned_images_no_html5' => false,
    'pco_ih_leave_oembeds_alone' => false,
    'pco_ih_hide_oembed_styles_in_head' => false,
    'pco_ih_link_images_to_file' => false
);

This options allow you to opt out of certain features. By setting a feature exception to true, you revert that feature to the standard functionality.

Filters?

Yep. The default values for these filters can be found in public/class-pco-media-handler

  1. pco_media_handler_embed_css - change the css that gets added to the head to deal with responsive embeds.
  2. pco_media_handler_oembed_providers - change the accepted oembed providers that should get the responsive treatment.
  3. pco_media_handler_youtube_params - change the params for all YouTube embeds.

Does this plugin add css files or scripts?

No, it does not add any HTTP requests. It does, however, add one line of css to the head tag of the site to make oembeds play nicely responsivly. You can turn this off by copying the rules ot your stylesheet and setting the option called pco_ih_hide_oembed_styles_in_head to true.

Does this plugin work on older versions of WordPress?

It probably works back to at least 3.5, but we have not tested it.

Requires: 3.8 or higher
Compatible up to: 3.9.2
Last Updated: 2014-7-21
Active Installs: 50+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1