Run filter on Video Embed in Gridder to content block video embed via Borlabs
-
Dear @michaelmaeder
I have recently replied on this thread:
http://laythemeforum.com:4567/topic/6887/bug-with-borlab-shortcodes/3However that may be another issue within the Borlabs bug? would be great to know if there are two.
Talk soon and have a wonderful day Michael ✨
Sincerely
Richard
-
Thanks, as far as I can tell the link issue is the same jQuery Error, unrelated to if this is the content blocker short code or the borlabs settings shortcode. Any link with
href="#"
seems to trigger this issue when clicked. -
Upon further investigation the suggested earlier version of LayTheme did not fix the link error for the content blocker. Also I have had another issue. Earlier I though instead of using the included Video element for the Gridder (which is not recognised as a video through Borlabs) I could use the shortcode elment instead to embed a video. But it did not work for the video to be responsive. I have tried to copy over the video markup from a video element and wrap that around a Borlabs content blocker shortcode, btu the completely messed up the layout.
So as it stands I am looking at two issues:
- Any links from Borlabs are not working in LayTheme (these are JS links that trigger the above jQuery error in LayTheme)
- The content blocker function of Borlabs does not cover the video element of the Gridder and cannot be replaced with a shortcode instead.
So I am looking for a way to circumvent the JS error through Borlabs links as well as a filter or some other way to inject the shortcode for the borlabs content blocker for video embeds.
Any pointers are more than welcome. I guess I am also willing to work with any other content blocking plugin that works with Laytheme. In order to work within a the law (DSGVO / GDPR) embeds of this kind (YouTube / Vimeo) always require proactive consent, so I would hope to support any kind of content blocking solution will be available for LayTheme. Otherwise I simply cannot use LayTheme anymore for any website that plans on embed these kinds of videos...
Thanks for any help with this.
My best,
Tobias -
I figured out the shortcode situation:
If I use a shortcode instead of the video element and use the following shortcode:
[borlabs-cookie id="youtube" type="content-blocker"]https://www.youtube.com/watch?v=LWNjX2d8wIg[/borlabs-cookie]<h4 class="_Caption">Video: B-Movie: Lust & Sound in West-Berlin 1979–1989</h4>
The I can activate in the Borlabs content-blocker settings Save thumbnails locally, Change URL to youtube-nocookie.com as well as Video Wrapper (in order for the video size to be responsive).
Then I have also added the following css:
div._brlbs-embed._brlbs-video-youtube { min-height: 350px; width: 100%; }
Which ensures that the content blocker, when shown, reserves som space (otherwise it was invisble for some reason, as the row didnt reserve the space accordingly).
With all this in place the content-blocker as well as the video show up properly and with responsive styling (and if you include the h4 tag also with caption).
Of course it would be great if the video tag would be automatically detected instead, so we wouldn't have to code. According to Borlabs support this can only be programmed by LayTheme and not by Borlabs.
Problem remaining:
The link issue which will prevent from any Borlabs links to function, which seems to be a LayTheme issue and which is unfortunately not solved by earlier LayTheme versions, as suggested by @Richard.
This means that if one chooses to not allow external media, the vides will be replaced with the content blocker screen (if you use the solution above), but the user will not have a way to deactivate the content-blocker, becaus the unblock link on the content blocker will not work and will lead to a JS error. When choosing to accept all in the initial cookie banner, the content is unblocked however.My Best
-
Dear @michaelmaeder
I have forwarded this to Armin for a closer inspection ✅🔍
thank you for the great updated information!
Sincerely
Richard
-
@Richard Thanks. Are there any updates? @Armin-Unruh any chance you can take a look at this?
-
Not yet sorry @michaelmaeder , because Borlabs is a third-party plugin it may take some time. Any previous versions of LayTheme files can be provided if things were working in the past and you wish to return to that phase.
Email lostfiles@laytheme.com with your license key and link to this thread for context if possible 🌝
Best wishes 🌅
Richard
-
hey @michaelmaeder I sent u an email
-
FYI whoever is interested. The JS error was now fixed and there is some effort spent to making it possible to detect videos automatically with Borlabs cookies, but thats still up in the air. WIth the short code approach detailed ubove it works like a charm no though, so there is a solution.
-
Dear @michaelmaeder
Thank you so much for this update - Always super helpful for users on the future searching the Forum 🔍💥
Have a wonderful day Michael 🌝
Richard
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it