the_enn
Forum Replies Created
-
Forum: Plugins
In reply to: [Wp-D3] Clicking text editor D3 icon hangsFYI, 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/
Forum: Hacks
In reply to: Can't stop p tag insertion with shortcodeI 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.Forum: Plugins
In reply to: [Wp-D3] Plugin reformatting unrelated shortcode output with wpautopHi,
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);
Forum: Hacks
In reply to: Can't stop p tag insertion with shortcodeThanks 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!
Forum: Hacks
In reply to: Can't stop p tag insertion with shortcodeOk, 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…
Forum: Hacks
In reply to: Can't stop p tag insertion with shortcodeA-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!
Forum: Hacks
In reply to: Can't stop p tag insertion with shortcodeThanks, 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?
Forum: Plugins
In reply to: [WP Video Lightbox] Set video playback sizeI’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.
Forum: Plugins
In reply to: [WP Video Lightbox] Set video playback sizeForum: Plugins
In reply to: [WP Video Lightbox] Set video playback sizeThe 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.
Forum: Plugins
In reply to: [WP Video Lightbox] Set video playback sizeRight, 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?
Forum: Plugins
In reply to: [WP Video Lightbox] Set video playback sizeYes, prettyPhoto is enabled and the default W/H settings are 640/480.
Forum: Plugins
In reply to: [WP Video Lightbox] Set video playback sizeI 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?
Forum: Plugins
In reply to: [Menubar] Bootstrap walker possibility?Ok, thanks for the response Andrea!
Forum: Fixing WordPress
In reply to: Can't locate back-end code for shortcode in contentThanks 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!