Support » Plugin: Vimeography: Vimeo Video Gallery WordPress Plugin » Plugin not working with themeforest theme

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dave Kiss


    Christopher Herrick


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

    Plugin Author Dave Kiss


    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




    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 :

    Thanks guys!

    Christopher Herrick


    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:


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin not working with themeforest theme’ is closed to new replies.