Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Created March 6, 2015 08:51
Show Gist options
  • Select an option

  • Save eri-trabiccolo/20bce58fd9407450fa5d to your computer and use it in GitHub Desktop.

Select an option

Save eri-trabiccolo/20bce58fd9407450fa5d to your computer and use it in GitHub Desktop.
Customizr - RTmedia plugin compatibility
add_filter('rtmedia_main_template_include', 'tc_rtmedia_comp', 20);
function tc_rtmedia_comp() {
global $wp_query;
$wp_query->is_singular = true;
}
/*DO NOT COPY THE FOLLOWING IN YOUR CHILD THEME FUNCTIONS.PHP */
/* The following css must be put in your child-theme style.css or in your custom css box */
/*
body.media {
margin: 0;
overflow: auto;
zoom: initial;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment