outdoorsdev1
Forum Replies Created
-
Forum: Plugins
In reply to: [WP YouTube Lyte] Video picture squashedI’ve disabled it and it does fix the issue – should I now try disabling optimisation of certain youtube lyte scripts?
Forum: Plugins
In reply to: [WP YouTube Lyte] Video picture squashedOne page that had the problem I tried with that added url string and it fixed it, even when I visited again without the string, and then trying again the same problem is happening.
I’ve tried excluding the js scripts wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js, wp-content/plugins/wp-youtube-lyte/lyte/lyte.js
is there anything else that I could do?
- This reply was modified 4 years, 6 months ago by outdoorsdev1.
Forum: Plugins
In reply to: [WP YouTube Lyte] Lazy load imagesThey are loaded late in the order so they aren’t content blocking – which is good.
However I’d prefer them not to load at all unless scrolled into view. This would be a killer feature as speed is the main reason I use this plugin. I’ve got a popular post that has 6 or 7 yt vids, and losing about 350kb of images from the initial page load would be really helpful.
Was this code from this thread what you were referencing?
add_filter('lyte_match_postparse_template','lyte_bgimg'); function lyte_bgimg($in) { return preg_replace('/(<div id="lyte_[^"]*"\s)data-src="([^"]*)"/', '\1 style="background-image:url(\'\2\')" ', $in); }
https://www.ads-software.com/support/topic/store-local-thumbnails-with-name-of-video-id/
Forum: Plugins
In reply to: [WP YouTube Lyte] Plugin is Creating Double Hypen In ContentI used this code in the single.php file of my child theme to stop any functions from the code in wptexturize doing anything. You should read more about what it does before implementing it though https://developer.www.ads-software.com/reference/functions/wptexturize/
/* Stops single dashes – being turned into double dashes — */
remove_filter( ‘the_title’, ‘wptexturize’ );
remove_filter( ‘the_content’, ‘wptexturize’ );
remove_filter( ‘the_excerpt’, ‘wptexturize’ );I assumed this was from this plugin but glad it’s confirmed and being worked on ??
Forum: Plugins
In reply to: [Autoptimize] Odd CSS change on generatepress, child theme, mobileHey, thanks for the quick and helpful reply – it’s really appreciated as is the amazing plugin ??
I just used the CSS you provided to get around the issue and found it worked so stuck with that.