Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Thank you for pointing me in the right direction. After some experiments we succeeded with the following code:
Script iFrame sender
<script> // iFrame send height window.addEventListener('DOMContentLoaded', (event) => { const main = document.querySelector(".beeldverhaal"); window.postMessage(main.offsetHeight, 'https://oudlisse.nl/'); }); </script>
And in the site using the Enfold theme add this to functions.php
// apply received iframe height function ava_custom_script_mod_iframe_height() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', ' window.addEventListener("message", (event) => { if (event.origin.startsWith("https://data.oudlisse.nl")) { const container = document.getElementById("iframe-container"); container.style.height = event.data + "px"; } }); ' ); } } add_action( 'wp_enqueue_scripts', 'ava_custom_script_mod_iframe_height', 9999);
Thanks for your help.
Kind regards,
HenkHi Ismael,
Excuse me, that was the link to the page to put in the iFrame.
Here is the link to the correct page in the website with Enfold: https://oudlisse.nl/uncategorized/beeldbanktest/.Kind regards,
HenkHey Ismael,
Sorry, the site was down. the site is available again.
Kind regards,
HenkHi Yigit,
I continued my experiments and removed this snippet from Quick CSS;
#top .av_header_transparency.av_alternate_logo_active .logo a > img { opacity: 1 !important; filter: alpha(opacity=1) !important ; }
Also reversed color from logo’s: transparancy Logo is now white and logo is black.
This works.
Problem solved.
Tanks.
Kind regards,
HenkHi Yigit,
This makes it a little better. Now a part of the transparancy logo is visible while srolled down.
But transparancy logo is still visible while page is scolled up and the default logo does not dissapeared while scrolling down.Kind regards,
HenkHi Ricard,
Thanks for your suggestion. As proposed I updated enfold from 4.3.1 to 4.7.6.4. But behaviour of transparancy logo is still the same:
– transparancy logo is visible while page is scolled up
– transparancy logo is coverd by logo while page is scrolled down.Your help is appreciated.
Kind regards,
HenkThanks Ismael, This is fine. Issue resolved. Kind regards, Henk
Hi Ismael,
Thanks for your suggestion. This CSS workaround has effect. Great! The image distorts indeed a bit.
The actual model of the iPad is ‘iPad Pro 12,9” Retina display (2732 x 2048 px).
However the problem also occurs on an iPad min 3 (2048 x 1536 px) and on the old iPad WiFi (2012) (2048 x 1536 px).I prefer not enlarge dpi because I also get a larger image file size which effects response.
Kind regards,
HenkHi Rikard,
The theme is updated to the latest version 4.4. Issue on iPad is still present (both Safari and Firefox).
Please have a look.Kind regards,
HenkHi Yigit,
Perfect. Switching position of the sliders resolved the issue.
Thanks.Kind regards,
Henk -
AuthorPosts