WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Christopher Herrick
    Member
    Posted 1 year 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:

    http://www.02.avalonlink.com/train-test/

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

    http://wordpress.org/extend/plugins/vimeography/

  2. Dave Kiss
    Member
    Plugin Author

    Posted 1 year ago #

  3. Christopher Herrick
    Member
    Posted 1 year ago #

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

  4. Dave Kiss
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Hi,

    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
    Member
    Posted 1 year 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:

    http://www.02.avalonlink.com/train/

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.