mmirlach
Forum Replies Created
-
So, as a workaround, I’m using this code via the functions.php, which seems to do the trick and convert standard YT URLs used for the featured image to nocookie URLs – so the video is visible both in the backend and frontend.
function wj_youtube_nocookie_oembed( $featured_image ) { return str_replace( 'youtube.com', 'youtube-nocookie.com', $featured_image ); } add_filter( 'ct_tracks_featured_image', 'wj_youtube_nocookie_oembed', 40 );
I’m afraid it does not show up when I view the page as well.
I was looking at a few other things and found this:https://wpexplorer-themes.com/total/snippets/add-nocookie-to-wordpress-oembeded-youtube-videos/
I haven’t tried it yet but maybe this could be an option – to add YT links as usual and then use the script via the child theme’s functions.php to convert them to nocookie-URLs?
Alternatively I was wondering if it’s possible to include some way of WP Youtube Lyte Support for the Featured Videos, so it would be possible to use the plugins settings?
- This reply was modified 4 years, 6 months ago by mmirlach.
I’m using version 1.72 of Tracks and 1.17 of Tracks Pro.
I don’t see the option, is it something I need to switch on in the settings or do I need to use a specific YT URL?Forum: Themes and Templates
In reply to: [Tracks] Suggestion: feature image resizeHa, Optimole did not work for me properly as my site is still in maintenance mode, so it did not deliver the optimized image. If that changes as soon as the site is live, even better!
Forum: Themes and Templates
In reply to: [Tracks] Change sticky postThanks!
Forum: Themes and Templates
In reply to: [Tracks] Style single menu itemSorry, it looks like it was just a chaching issue, it’s all working now. No idea how to delete this ??
Thanks, that solved the issue!
Forum: Themes and Templates
In reply to: [Tracks] Author info box – nameThanks, that does the trick!
Forum: Themes and Templates
In reply to: [Tracks] Hide TagsThank you!
Done!
Hey, I got the following reply via email but it’s not visible here now?
“Hello, this is caused by the gallery.
It explicitly specifies a width and height of 226×151 that optimole respects.`<div id=”cboxLoadedContent” style=”width: 226px; overflow: auto; height: 151px;”></div>
As you can see the container has explicit height and width specified as a result the URL generated by optimole is for those sizes.
You can check if the gallery allows for those attributes to be changed, if not you can use the exclusion filter from Optimole to exclude from lazy-loading images with the class “cboxPhoto”
Let us know if any of the steps solve the issue for you.
Thank you!”
I’ve excluded “cboxPhoto” (“Don’t lazyload images if Image tag contains class cboxPhoto”) but I’m afraid it does not solve the issue ??
I got this feedback from Optimole now:
“Hello, this is caused by the gallery. It explicitly specifies a width and height of 226×151 that optimole respects.
`<div id=”cboxLoadedContent” style=”width: 226px; overflow: auto; height: 151px;”></div>
As you can see the container has explicit height and width specified as a result the URL generated by optimole is for those sizes.”
Is there a CSS class I should be able to exclude from lazyloading in Optimole that might fix the issue?
You can see the issue here:
https://www.wall-jump.com/martin-gantefohr/
Thumbnails for the gallery (with the three images) should open full size.
When deactivating Optimole, they do. If activated, they don’t.
I’m also using Autoptomize, with Image optimization not enabled.
I think I’ve found the issue:
I’m using Optimole to deliver optimized images and Lazy Loading to the website (which resulted in much improved page speed).
Do you know if there’s a similar service to Optimole that works well with Advanced Gutenberg?Hey,
the lightbox do work as they should when I include Advanced Images but they don’t for Galleries (Open galleries in lightbox function in the Config settings). Here’s an example: