[resolved] Plugin not working with themeforest theme (6 posts)

  1. Christopher Herrick
    Posted 3 years ago #

    I'm using the Mercor on WP 3.5 and the plugin isn't working.

    It displays the video at full res, ignoring the width parameter in settings and doesn't display the thumbnails properly.

    view here:


    any ideas? looks like a great plugin and I'd love to use it. Thanks!


  2. Dave Kiss
    Plugin Author

    Posted 3 years ago #

  3. Christopher Herrick
    Posted 3 years ago #

    i had tried the raw tags, didn't have any effect

  4. Dave Kiss
    Plugin Author

    Posted 3 years ago #

    Your theme has altered the normal ordering of the WordPress filters such that the wpautop filter is run after shortcodes are parsed. The result is that extra
    tags are printed all over the form including the JavaScript, which can cause extra spacing, break the JavaScript and preventing the form showing if you have conditional logic. Some themes have a workaround – wrap the form shortcode in raw tags. If that doesn’t work – see below.

    The solution is to move the wpautop filter so that it’s run before the do_shortcode filter. Your theme possibly has the code shown below somewhere, a good place to start looking is the functions.php file then any shortcode related file, find this code and remove it.

    remove_filter( ‘the_content’, ‘wpautop’ );
    add_filter( ‘the_content’, ‘wpautop’ , 99 );
    add_filter( ‘the_content’, ‘shortcode_unautop’, 100 );

    If you can’t find it, the author of your theme will be able to tell you how to do this or provide a workaround.

    You can email the author of the Mercor theme at support@premiumcoding.com

  5. lineceline
    Posted 3 years ago #


    For the size of the video, I just imported the vimeography css in my theme.

    But I still have an issue with the javascript, it won't load.
    I deleted this line in my shortcodes.php file, in my theme folder :
    remove_filter('the_content', 'wpautop'); (it was remove filter and not add filter..., which is weird because if I take a look at your solution, I wouldn't have encountered any issue with this code).

    Do you have any idea of what else it could be?

    Here is the concerned website : http://pigup.fr/?page_id=452

    Thanks guys!

  6. Christopher Herrick
    Posted 3 years ago #

    I was able to fix this by commenting out lines 384-392 in mercor's functions.php:

    function pmc_formatter($content) {
        $new_content = wptexturize(wpautop($content));
        return $new_content;
    add_filter('the_content', 'pmc_formatter', 99);

    The plugin now appears to work:



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Vimeography
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.