gharchi
Forum Replies Created
-
Yes, I can see the settings. Thank you for the message. Appreciate that.
Forum: Plugins
In reply to: [WP Video Lightbox] Video Thumbnail StylingHere is a function you can use in
functions.php. The function grabs a link and listens for link clicks. I added a 900ms delay (adjustable based on your theme) to ensure the iframe is fully loaded. Once the iframe is loaded, the function removes anyrelatedandautoplayparameters from the iframe and re-adds them.document.addEventListener('DOMContentLoaded', function () {
const videoLinks = document.querySelectorAll('a[rel="wp-video-lightbox"]');
videoLinks.forEach((link) => {
link.addEventListener('click', function () {
setTimeout(() => {
let iframe = document.querySelector('iframe[src*="youtube.com/embed"]');
if (iframe) {
// Get the current src and remove any existing 'rel' and 'autoplay' parameters
let src = iframe.getAttribute('src');
// Clean the src by removing existing 'rel' or 'autoplay' parameters
src = src.replace(/[?&](rel=\d|autoplay=\d)/g, '');
// Add rel=0 to disable related videos and autoplay=1 to start the video
src += (src.includes('?') ? '&rel=0&autoplay=1' : '?rel=0&autoplay=1');
iframe.setAttribute('src', src);
// Set iframe width for responsive behavior
//iframe.style.width = '100%';
//iframe.style.maxWidth = '100%';
}
}, 900);
});
});
});I also encountered an issue with video thumbnails being cropped on smaller devices, which I resolved by adding
aspect-ratio: 16/9;andheight: auto;to the iframe in CSS.
Hope it helps someone.- This reply was modified 1 year, 7 months ago by gharchi.
Forum: Plugins
In reply to: [WP Video Lightbox] Video Thumbnail StylingThe problem is resolved. I wrote a custom JS function to get the iframe and force the rel=0 in mobile devices.
I am not sure what was the problem, we tested it in a plain WP setup and only one plugin but still the issue was there. Anyways, it works now as we have the function to force it. ThanksForum: Plugins
In reply to: [WP Video Lightbox] Video Thumbnail StylingThanks for your quick reply. I am trying to figure out. I disabled all plugins and themes, and used “Twenty Twenty-Four” theme.
The Shorcode below works well on Desktop but on mobile devices not. The related videos are still showing.
[video_lightbox_youtube video_id=”9xwazD5SyVg&rel=0″ width=”640″ height=”480″ anchor=”click me”]I checked inspect element, I can see the value of “rel” sets to 0 on Desktop inside the iframe but on mobile devices it changes to 1.
Desktop:
https://www.youtube.com/embed/9xwazD5SyVg?rel=0Mobile:
https://www.youtube.com/embed/9xwazD5SyVg?rel=1Kind curious to know.
Forum: Plugins
In reply to: [WP Video Lightbox] Video Thumbnail StylingApologies, I am removing the related videos from YouTube but it seems they are still showing on mobile.
[video_lightbox_youtube video_id=”9xwazD5SyVg&rel=0” width=”640″ height=”480″ alt=”Interior”]
- This reply was modified 1 year, 7 months ago by gharchi.
Forum: Plugins
In reply to: [Social Feed Gallery] Access Token Not ExistWe are using the free version of the plugin. It is the updated version
Forum: Plugins
In reply to: [Social Feed Gallery] Access Token Not ExistHere is the screenshot link. thanks in advance.
https://snipboard.io/acYh5q.jpgForum: Plugins
In reply to: [Social Feed Gallery] Access Token Not ExistHi mate,
I have added the screenshot for your reference. The account ID and access token is blurred.https://ibb.co/ynBBcXb
https://ibb.co/bsNQmyFThanks a lot.
Forum: Plugins
In reply to: [Social Feed Gallery] Feed is not displaying imagesI guess “Carousel Feed” is now a premium feature. Maybe that’s the reason the feed is not displaying if using free version. It works when I change the feed to Gallery or Masonry.
Forum: Plugins
In reply to: [Social Feed Gallery] Feed is not displaying imagesHere is the link to the website: https://ohpnk.com. It should be the caching as it works on other browsers. I already purged Cloudflare and Asset Cleanup cache.
I installed the plugin in other website but the “Add Business Account” is greyed out. May I know what would be the reason?
Thank you in advance.
- This reply was modified 3 years ago by gharchi.
Forum: Plugins
In reply to: [Social Feed Gallery] Feed is not displaying imagesIt was working but it is not displaying the feed again. May I know if is it related to the free or pro version of the plugin?
Forum: Plugins
In reply to: [Social Feed Gallery] Feed is not displaying imagesI emptied the cache and it works now.
The problem has fixed by clicking on “Regenerate Assets” on wp-admin -> Essential Addons. And also “Regenerate Files” from wp-admin -> Elementor -> Tools -> General. The problem is solved and load more button is working well now.
May I know what was the problem and what happens when we click on regenerate assets? Thank you
I fixed the problem already. I deleted WP Mail SMTP with all the settings and also I reset the other plugin then reinstall WP Mail SMTP and other plugins. They are both working fine.
I am not sure what was the problem but it is fixed now.
Thank youI am having the same issue. The language turns into Thai all of sudden. I have been trying to fix it for a week but it is all temporary and it gets back to Thai after a day or two.
All language settings are in ENG-US, but still does not fix the problem.