Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Disable shortcode modules

  • Resolved ninetienne

    (@ninetienne)


    So, in the latest Jetpack versions it’s not possible to disable Responsive Embeds or Shortcodes modules from the admin.

    Thus Jetpack will always override embed markup in your posts. People activate Jetpack and they no longer get responsive videos. Because Jetpacks overrides the HTML and adds a wrapper .embed-youtube for example. However Jetpack people obviously forgot to enqueue the responsive CSS for the class. So there’s just a wrapper around the iframes and no styles. Okay.

    So, we decide to disable all shortcodes added (automatically!) by Jetpack, like this:

    `
    // Remove all Jetpack shortcodes
    function prefix_jetpack_remove_your_shortcodes( $shortcodes ) {
    $shortcodes = array();
    return $shortcodes;
    }
    add_filter( ‘jetpack_shortcodes_to_include’, ‘prefix_jetpack_remove_your_shortcodes’ );
    `

    This filter won’t work from a theme.

    Could you please advise, how we can disable Jetpack “responsive” (yeah, without styles) embeds from a theme?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ninetienne

    (@ninetienne)

    Okay. I added theme support and a new wrapper appeared.

    But what’s the way to disable responsive video module now?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    in the latest Jetpack versions it’s not possible to disable Responsive Embeds or Shortcodes modules from the admin.

    You can deactivate the Shortcode Embeds module on this page:
    http://yoursite.com/wp-admin/admin.php?page=jetpack_modules

    We’re also working on making the feature easier to access and enable when it’s disabled. You can follow our progress here:
    https://github.com/Automattic/jetpack/issues/6788

    Responsive Videos, on the hand, are a theme feature. They’re only enabled if your theme declares support for it as explained here:
    https://jetpack.com/support/responsive-videos/

    If you don’t want to use that feature, you can remove that add_theme_support call from your theme.

    If it is not in your theme, Jetpack will not add any responsive videos library.

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable shortcode modules’ is closed to new replies.