Forum Replies Created

Viewing 15 replies - 16 through 30 (of 53 total)
  • Thread Starter the_enn

    (@the_enn)

    FYI, it looks like there was a conflict with this plugin and the Query Monitor plugin. I disabled Query Monitor and now D3 is bringing up the editor successfully again without hanging. https://www.ads-software.com/plugins/query-monitor/

    Thread Starter the_enn

    (@the_enn)

    I had to read that several times, but it has finally sunk in. ??

    Thanks a lot for explaining this – it’s a big help for this issue, not to mention going forward.

    So when removing a hook that was already added in a plugin, it can be done in one of two ways:

    Theme:
    No init hook necessary because the theme is loaded after the plugins. However, the priority of the hook must match that of the hook from the plugin you are overriding.

    Plugin:
    Need to use the init hook as a delay mechanism to make sure it runs after the plugins are loaded since you have no idea what order the plugins are being loaded.

    Thread Starter the_enn

    (@the_enn)

    Hi,

    I deleted the 2.2 version entirely from the site and uploaded 2.3, but am still seeing the wpautop issue take place unless I put this in my theme functions.php:

    remove_filter( ‘the_content’, ‘wpautop’, 90);

    Thread Starter the_enn

    (@the_enn)

    Thanks for explaining, bcworkz. So it sounds like if both the plugin and the theme are using ‘init’ as the hook to include a filter, they can still run in a different order based on the priority level.

    Looking at the plugin, the add_filter is in the main wp-d3.php file, and I’m not seeing it run based on an ‘init’ hook. It’s not inside a function, so I’m not sure what hook is driving it(if any?). So I’m still a bit confused in that respect, but I appreciate your help getting me in the right direction!

    Thread Starter the_enn

    (@the_enn)

    Ok, so I got it to work–THANK YOU–and am a little confused because of the order of precedence when WP executes certain action hooks.

    This did not work(functions.php):

    add_action('init','remove_wpautop',90);
    
    function remove_wpautop() {
    	remove_filter ('acf_the_content', 'wpautop');
    	remove_filter( 'the_content', 'wpautop' );
    
    }

    But this did (I removed the init hook and function from above):

    remove_filter( 'the_content', 'wpautop', 90);

    I had thought that the ‘init’ hook was fired after the plugins were loaded. Is this not accurate?

    The WP-D3 plugin was the problem point, but the add_filter from the plugin is apparently executing after my ‘init’ hook from above. If my ‘init’ hook has the priority of 90, shouldn’t this run after the plugin? Obviously it isn’t, but I’m trying to wrap my head around why…

    Thread Starter the_enn

    (@the_enn)

    A-ha!

    I tried deactivating plugins one by one and sure enough, I found the culprit, the WordPress-D3 plugin. If I de-activate it, the wpautop formatting goes away.

    Now the issue is how keep the plugin active, but remove wpautop from it. I posted a support message in that plugin’s forum on how to do that, but if any ideas, all ears!

    Thread Starter the_enn

    (@the_enn)

    Thanks, I tried that and am getting the same issue.

    I put this in my functions.php:

    add_action('init','remove_wpautop',201);
    
    function remove_wpautop() {
    	remove_filter ('acf_the_content', 'wpautop');
    	remove_filter( 'the_content', 'wpautop' );
    
    }

    Anything else I should try? Or, is there any WP utility or plugin that shows you how to track when something like wpautop gets called?

    I’m not sure what the Enable jQuery plugin is, but this is a customized theme. jQuery is being used throughout the site. Was hoping for CSS elements from this plugin for a start on where to override popup width/height.

    The theme is responsive and am not using a plugin to make it responsive.

    Can you point me in the right direction as far as what classes to refer to in the CSS for the video lightbox? Thanks.

    Right, I didn’t see where to change the playback setting width and height when using a link. So you’re saying it gets the dimensions from prettyPhoto? This matches up on the desktop view so that makes sense.

    However, is there a way to override the dimensions on a mobile device? The youtube video playback window is very tiny. Can CSS be used to override the width/height using media queries for mobile?

    Yes, prettyPhoto is enabled and the default W/H settings are 640/480.

    I have the same question for the video playback size, but the instructions don’t seem to specify for this case.

    Here is my link:

    echo '<a class="thumbhover" href="https://www.youtube.com/watch?v='.$videocode[$i].'" rel="wp-video-lightbox" title=""><img src="https://img.youtube.com/vi/'.$videocode[$i].'/maxresdefault.jpg" width="350"
    			alt="Youtube" /></a> ';

    The example code in the instructions doesn’t specify how to add the lightbox height/width for the playback:

    <a href="https://www.youtube.com/watch?v=G7z74BvLWUg"
    rel="wp-video-lightbox" title=""><img
    src="https://example.com/images/thumbnails/youtube.jpg"
    alt="YouTube" width="60" /></a>

    Also, is there a way to override the width and height responsively in CSS?

    Thread Starter the_enn

    (@the_enn)

    Ok, thanks for the response Andrea!

    Thread Starter the_enn

    (@the_enn)

    Thanks for mentioning the plugins aspect. I researched and found out the shortcode is part of the EmbedIt plugin (https://www.matteoionescu.com/wordpress/embed-html/).

    Cheers!

Viewing 15 replies - 16 through 30 (of 53 total)