What has changed in Enfold 5?
on previous versions of Enfold I think it was that when the lightbox was open it was fixed, and only the body could still scroll.
This is not the best behavior, a fixed body with the lightbox open would be best.
But now we have scrolling for the lightbox container as well? Is there a reason for this?
Open an image and scroll with your mouse:
https://kriesi.at/themes/enfold-parallax/#portfolio
PS:
Looking at the old Enfold demos, I guess my assertion is not true. But wouldn’t that be a desirable behavior of the lightbox?
yes i can put this to child-theme functions.php to have that:
function custom_lightbox_script(){
?>
<script type="text/javascript">
(function($) {
function a() {
$('body').on('click', '.lightbox-added', function() {
if($('.mfp-bg').length >= 1) {
$('html').css("overflow-y", "hidden");
}
});
$('body').on('click', function() {
setTimeout( function() {
if($('.mfp-bg').length == 0) {
$('html').css("overflow-y", "scroll");
}
},500);
});
}
a();
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_lightbox_script');
but i think some settings on the lightbox options will be more performant
fixedBgPos true/false
overflowY auto / scroll / hidden
Hi,
1: i added a video which is hosted local.
It is set to autoplay WITH sound.
– it does not play sound. Why not?
2: the player element for loudness is in the right corner but it can not be “touched / reached”.So either manually it is not possible to turn the sound on.
Its YOUR element that blocks touching it:
<div class="av-click-overlay"></div>
3: The Video is full HD
Since there is the header bar with the menu users dont see the player elements on the bottom of the video.
User have to scroll down first to reach the playerelements.
How can i solve this in a way that users see the whole video WITH the playerbar without scrolling?
(I just solved it by cutting the video into 1920 x 830 instead of Full-HD and a bit CSS but i would like to have a better solution)
Code and URL in private field
kind regards
Elvira
-
This topic was modified 3 years, 9 months ago by
InSilentio.
-
This topic was modified 3 years, 9 months ago by
InSilentio.
-
This topic was modified 3 years, 9 months ago by
InSilentio.
Hi,
For that page try this css:
#top.page-id-38 .flex_column.avia-builder-el-2 {
overflow: auto;
}
but on that page the color section that the table is in is hidden on mobile.
If you have multiple tables on multiple pages then I recommend add a custom class to the column that the table is in, if you use the custom class “scroll-table” then you could use this css instead:
#top .scroll-table {
overflow: auto;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hi,
Thank you for your patience.
On Firefox, the scroll position is correct on initial load and when you do a hard refresh, which means that the script only fires correctly when you actually refresh the page. Firefox doesn’t seem to automatically refresh the page when you try to access it again by pressing the ENTER or RETURN key in the URL field. You have to do a hard refresh manually. On Chrome, this always works because the browser always refreshes the page automatically when you try to access the page again using the browser URL field. Scrolling also works correctly when you try to access the section using the anchor links at the very bottom of the page.
We modified the filter in the functions.php file a bit to adjust the offset on firefox browser but again this will only work on Firefox if the page is actually refreshed.
function avf_header_setting_filter_mod($header) {
$offset = strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") === false ? 50 : 75;
if( ! wp_is_mobile() ) {
$header['header_scroll_offset'] = $header['header_scroll_offset'] + $offset;
}
return $header;
}
add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
Best regards,
Ismael
Hi
I added a while back the following code to display the TOC, with the help of you guys.
add_shortcode('toc', 'avs_toc_function');
function avs_toc_function() {
$args = array (
'name' => 'Displayed Everywhere',
'id' => 'av_everywhere',
'description' => '',
'class' => '',
'before_widget' => '<details> <summary>Table of Contents</summary><section id="avia_auto_toc-2" class="widget clearfix avia_auto_toc">',
'after_widget' => '<span class="seperator extralight-border"></span></section></details>',
'before_title' => '',
'after_title' => '',
'widget_id' => 'avia_auto_toc_custom',
'widget_name' => 'Enfold Child Table of Contents',
);
$instance = array (
'title' => ' ',
'exclude' => '',
'style' => '',
'level' => 'h2',
'single_only' => 0,
'indent' => 1,
'smoothscroll' => 1,
);
ob_start();
$toc = new avia_auto_toc;
$toc->widget($args, $instance);
$output = ob_get_clean();
return $output;
}
After the latest update i get the error Fatal error: Uncaught Error: Class ‘avia_auto_toc’ not found
if i comment the code, the pages loads but the TOC is not showing.
I have a lot of posts that uses this shortcode to present the TOC.
Can you help figure out a solution.
Thank you
Hello there
I have tested my website through various devices with different resolutions and different modes.
1. The first issue I detected is landscape mode mainly on android devices. When switched to landscape, the right sidebar appears and some content is cut off. I have the option in settings turned on where for mobile devices, sidebars are switched off. In portrait mode, the sidebar does not appear. But when switched to landscape, it appears and nothing auto-adjusts. The thing is I want the mobile version on android and iPhone to be without sidebars, both landscape and portrait modes. I have attached a screenshot with the landscape mode in private content.
2. I have tested my website on other resolutions where the logo, menu, etc. overlap on certain resolutions. I have attached images of these devices in private content.
My extra coding consists of the following incase there is something in there that needs a minor change:
#scroll-top-link, #av-cookie-consent-badge {
color: #000000;
background: #f6971a;
border: 2px solid #000000;
}
@media only screen and (max-width: 479px) {
.responsive #top .logo img {
max-height: 100px !important;
}
}
.cmc_global_data ul li .global_d_lbl {
font-weight: 600;
font-size: 90%;
background: transparent;
color: #00000;
border: transparent;
margin-right: 0px;
}
.cmc_global_data ul li .global_data {
font-size: 11px;
white-space: nowrap;
display: inline-block;
}
@media only screen and (max-width: 767px) {
#header_meta {
display: none;
}
}
h1 {
font-weight: bold;
color: #000000;
font-size: 24px;
}
h2 {
font-weight: bold;
color: #fff;
font-size: 18px;
}
.slide-meta {
display: none!important;
}
#top #wrap_all .avia-post-nav {
background: rgb(246 151 26 / 72%);
height: 150px;
}
.avia-post-nav:hover .entry-info-wrap {
width: 300px;
}
.avia-post-nav .entry-info {
width: 275px;
height: 120px;
}
Let me know as soon as possible how to fix these issues :)
-
This topic was modified 3 years, 11 months ago by
babyboymik.
Hi,
Thank you for the inquiry.
The page should scroll automatically to the open toggle on load. This is declared in the config-templatebuilder/avia-shortcodes/toggles/toggles.js file > trigger_default_open function around line 160.
window.scrollTo(0, container.offset().top - 70);
It is possible that a plugin is preventing the page from scrolling to the active toggle. Have you tried disabling the plugins temporarily?
You should also update the theme to version 4.9.2.1 as soon as possible.
Best regards,
Ismael
Hey Gunter,
I was wondering if the Horizontal Gallery ALB element could get some attention soon.
Would really enhance the usefulness of this element if it had the following features:
– Autoscroll on/off
– Continuous scroll (eg: when it gets to the last slide it continues to the first one, rather than hitting a dead end) on/off
– Use either images or posts (exactly like the Accordion Slider, where you can select either Image based, or Entry based)
– Display of captions/text on/off
On this last point, we have some custom code to output the images title or ALT on the page (see private field), but can’t seem to work out how to get a Caption to display. When building the element and inserting the gallery, you can setup captions and an image link. But this caption never seems to get outputted in the page code anywhere? Could it be? That way at least we could use that as a title for the images, but without affecting the image title/ALT tags globally (as these images are in use in other areas of the site as well).
Finally, just a Q to do with adding image links via the gallery. I see that it adds any custom link to the media library’s data as well. So does this mean that if this image is used in other parts of the site as well, that this image will always link? Is there a way to add links to the images in the Horizontal Gallery that wouldn’t allow that?
I hope that all makes sense, and I can’t wait to see what you have in store for Enfold 5 :)
Thanks Gunter,
Tim.
Hi, I found this script, but I’m facing the same issue: auto-scroll on page load (without any click).
I’ve also tried deactivating all plugins and other scripts. Same odd result.
I’ve also tried .on(‘click’) instead of .click()…same same
This is what I get in the console:
The service worker navigation preload request was cancelled before ‘preloadResponse’ settled. If you intend to use ‘preloadResponse’, use waitUntil() or respondWith() to wait for the promise to settle.
Any thoughts? Thanks!
Hi @spooniverse,
Yes, you would need to find following in menu.js file
if( burger_menu.is(":visible") )
{
this.css({top: 'auto', position: 'absolute'}); fixed = false;
return;
}
and change it to following in your child theme
if( burger_menu.is(":visible") && (scrolled + modifier > top_pos) ){
this.css({top: header.Height() , position: 'fixed !important'}); fixed = true;
}
Best regards,
Yigit
Hey Jak73,
Thank you for the inquiry.
To make it a bit simple, the width of the image should be close to that of the standard screen resolutions (1920x1080px, 1600x900px), and should have an aspect ratio of 16:9. The image should also exceed the height of the color section to get that subtle image delay when scrolling the document. But please note that the parallax script in the theme will handle the image resizing automatically based on the size of the color section, so you don’t really have to worry about the exact image size.
You can check the image in the private field to get an idea on how big the image should be in a parallax color section. The image is used in one of the demo with the parallax effect. And in case you didn’t know, you can also use the Layer Slider to create a parallax effect.
Best regards,
Ismael
I removed the following code (Mike’s post) from functions.php and then replaced the shortcodes.js file with the latest from the Enfold download which has helped – I can open one toggle only but then any following toggles automatically scroll to the top of the page every time.
function wp_change_shortcodesjs() {
wp_dequeue_script( ‘avia-shortcodes’ );
wp_enqueue_script( ‘avia-shortcodes-child’, get_stylesheet_directory_uri().’/js/shortcodes.js’, array(‘jquery’), 2, true );
}
add_action( ‘wp_print_scripts’, ‘wp_change_shortcodesjs’, 100 );
Any further suggestions?
PS– there is second Accordion element on the home page that shows exactly the same behaviour.
-
This reply was modified 4 years, 1 month ago by
ellamac.
Hi Ismael,
Looks ok for now. Thanks.
Can you re.open the topic:
https://kriesi.at/support/topic/fixed-sticky-header-on-mobile-iphone/
Due to this code, Yigit shared with me, the scroll function is on mobile has a defect. After I clicked on a menu point and I wish up and down, it automatically changes the position.
This reply has been marked as private.
Hi,
We cannot reproduce the issue on our end. The popup container scrolls down to the very bottom and we are able to access the very last tab or toggler without any issue. We provided a screenshot in the private field.
If you want, we can adjust the height of the popup container to make the privacy tabs more accessible. Please add this code in the Quick CSS field.
.av-inline-modal {
max-height: 95vh;
overflow: auto;
}
Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css.
Best regards,
Ismael
Dear support,
I am running Enfold 4.8.8.1 and WordPress 5.8.3
Since 6 months approx, the first image on “easyslider” object in my pages is not displayed when the page is loaded.
I tried to disable all plugins : no change
I changed “easyslider” Advanced settings to “Do not use lazyloading” : no change
I changed automating scrolling with a duration of 3 sec : no scrolling, blank image
In any case, if I use the left or right arrow to change the slide and, after that, images are displayed.
You can see the problem at link #1:
below “Cursus AB inter NET work” and below ” Cursus Belden” there are 2 “easyslider” in the big space between these titles and the fixed images (the orange Cursus Ab inter net work” and the blue fixed image ‘cursus Belden”
Another page : link #2
Easyslider is used to display a full sized intro image (only one slide) which is never displayed.
On the previous link, to avoid this problem, I used “Advanced LayerSlider” with only one slide and the image is correctly displayed.
It was working fine in the past (at least, in march last year) but I discovered that after an upgrade (don’t know if it was WP or Enfold – as I upgrade them automatically). Was hoping this to be solved in a future release of Enfold, but new versions are coming and my bug is still there.
Can you help solve this issue ?
best regards
Alain
This reply has been marked as private.
Hi,
It sounds like the block editor is currently enabled. Have you tried reverting back to the classic editor? Because when the classic editor is active, it is possible to set the Advance Layout Builder to full screen, which will automatically set the elements panel to be fixed or make it stick to the top of the builder while scrolling. Please check the screenshot in the private field.
Thank you for your patience.
Best regards,
Ismael
Hey Kyle,
Thanks for the link to your site but the login didn’t work for me, nonetheless try this function in your functions.php instead:
function popup_inline_with_no_scroll() { ?>
<script>
(function($) {
$(window).on('load', function(){
$('.open-popup-link').addClass('no-scroll');
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true,
callbacks: {
beforeOpen: function () {
$('body').css("overflow-y", "hidden");
},
close: function() {
$('body').css("overflow-y", "auto");
},
},
});
});
})(jQuery);
</script>
<?php }
add_action("wp_head", "popup_inline_with_no_scroll");
Then clear your browser cache and any cache plugin, and check.
Best regards,
Mike
dear Kriesi-Team!
I have some issues with anchors but didn´t find the correct solution yet.
I use anchors as individual links in a submenu of the main navigation so that the visitor of the site can scroll through the page or he can jump (from anywhere) to the correct position of the site.
Well it works only when I am allready on the subsite wich uses the anchor. Then it scrolls automatically to the correct position using the anchor BUT when the visitor was on the main page and uses the main navigation to jump to the anchor the position is not correct.
I tried to use the anchor-URL without the last Slash for the individual link in the main navigation (www.website.com/subsite#anchor) > then the issue is the other way arround, meaning it will work via the main navigation but WONT WORK when the visitor is allready on the subsite with the anchor (then it scrolls not far enough).
Really strange, especially when it works fine with all the other anchors on the website only one is causing the issue.
So if you wanna test it:
this is the faulty anchor: https://www.schmiedeamravelsbach.at/impressionen/#inspirationen
…test it by first surfing to: https://www.schmiedeamravelsbach.at and then click on IMPRESSIONEN and in the submenu on INSPIRATIONEN > scrolls not far enough
when you then go to BILDERGALERIE (scrolls up) and then again on INSPIRATIONEN > scrolls down to correct position of the anchor
Help is appreciated :-)
funfact: it occurs when using firefox or safari but not when using edge….????
-
This topic was modified 4 years, 3 months ago by
GePu.
Hi Angèle,
Thanks for giving us admin access.
We have modified the CSS code with this one:
@media only screen and (max-width: 1366px) {
.flex_cell.avia-full-contain {
background-size: auto 70% !important;
background-attachment: scroll !important;
background-position: 0 50% !important;
}
}
@media only screen and (max-width: 980px) {
.flex_cell.avia-full-contain {
background-size: auto 60% !important;
}
}
Please review your site.
Best regards,
Nikko
Hi,
Thank you for the update.
Try to remove the image from the menu item temporarily, then use this css code to insert an icon font inside the login menu item. The icon font should automatically switch color when the header changes or when scrolling down or up.
#menu-item-8683 a:before {
font-family: 'entypo-fontello';
content: "";
font-size: 26px;
}
#menu-item-8683 .avia-menu-text {
display: none;
}
Best regards,
Ismael
HI, in a few urls, suddenly… when visiting the page, automatically …. scrolls to the bottom of the page without clicking anywhere, srolls down to the end of the page… footer.
Can you pls help?
in almost all pages except the home page
everything is up to date and start happening automatically….
many thanks
Ricardo
And because of event.which is deprecated ( i erased that function above ) use better:
( on child-theme functions.php )
function disable_enter_key(){
?>
<script type="text/javascript">
(function($) {
$(document).on('keypress keydown keyup', '#searchform', function(e) {
if(e.keyCode == 13) {
e.preventDefault();
return false;
}
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'disable_enter_key');
by the way: on small screens ( mobile devices ) the ajax response list maybe too big for the screen. On default – it is not scrollable that window:
#top #searchform .ajax_search_response {
max-height: calc(100vh - 200px); /* test it with fitting settings */
overflow-y: auto;
height: auto;
}
disadvantage: maybe you do only hamper enter key on desktop devices ! because on my mobile the text input will be closed by enter key ;)
so maybe that line above to replace by:
$(document).on('keypress keydown keyup', 'html:not(.avia_mobile) #searchform', function(e) {
Hi,
Glad to hear this helped, to prevent the popup scroll try adding this code to the end of your functions.php file in Appearance ▸ Editor:
function prevent_popup_scroll() { ?>
<script>
(function($) {
$(window).on('load', function(){
$('.open-popup-link').addClass('no-scroll');
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true,
callbacks: {
beforeOpen: function () {
$('body').css("overflow-y", "hidden");
},
close: function() {
$('body').css("overflow-y", "auto");
},
},
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'prevent_popup_scroll');
Best regards,
Mike
Hi,
wir haben ein Header Widget wie in Ihrer Beschreibung umgesetzt, es funktioniert auch.
Jetzt soll es responsiv werden, 50% Verkleinerung oder in Pixel.
Wie setzen wir das um?
we have implemented a header widget as in your description, it works too.
Now it should be responsive, 50% reduction or in pixels.
How do we do that?
Hier der CSS Code des Widget.
/************************************
Widget header
*************************************/
#header .widget {
position:absolute!important;
left:5%!important;
top:0px!important;
}
#header.header-scrolled .widget {
position:absolute!important;
left:5%!important;
top:-30px!important;
}
#header.responsive .widget {
width:50px;
height:auto;
}
#header.header-scrolled .widget img {
width:30px;
height:auto;
}

Hey domchocolate,
Thank you for the inquiry.
We have checked the lightbox on a browser device emulation and it seems to be working correctly. If you need to prevent the document from scrolling and make sure that the container appears at the center of the document, please try to replace the script with the following code.
function av_open_inline_popup(){
?>
<script type="text/javascript">
(function($) {
$(window).on('load', function(){
$('.open-popup-link').addClass('no-scroll');
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true,
callbacks: {
beforeOpen: function () {
$('body').css("overflow-y", "hidden");
},
close: function() {
$('body').css("overflow-y", "auto");
},
},
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'av_open_inline_popup');
Thread: https://kriesi.at/support/topic/lightbox-17/
Best regards,
Ismael
This reply has been marked as private.
Hey WebDevDept,
Thank you for your patience, as I understand your situation you would like to have some 1/2 column background videos with text blocks next to them like in a checkerboard pattern, tested using a grid row element with text on one side and a code block on the other with an html code for a background video.
This is the backend view:

this is the frontend view:

the html is based on this codepen, and if you are using the Avia Layout Builder Debugger you can add my test page to your site to examine with this shortcode:
[av_heading heading='Below a grid row element is used' tag='h3' style='' subheading_active='' show_icon='' icon='ue800' font='entypo-fontello' size='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' subheading_size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' icon_size='' av-medium-font-size-1='' av-small-font-size-1='' av-mini-font-size-1='' color='' custom_font='' subheading_color='' seperator_color='' icon_color='' margin='' margin_sync='true' padding='10' icon_padding='10' headline_padding='' headline_padding_sync='true' link='' link_target='' id='' custom_class='' template_class='' av_uid='av-kuvig2gc' sc_version='1.0' admin_preview_bg=''][/av_heading]
[av_layout_row border='' min_height_percent='' min_height_pc='25' min_height='0' color='main_color' mobile='av-flex-cells' mobile_breaking='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' id='' custom_class='' template_class='' aria_label='' av_element_hidden_in_editor='0' av_uid='av-5o6ocv' sc_version='1.0']
[av_cell_one_half av_uid='av-4at75r']
[av_textblock size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' font_color='' color='' id='' custom_class='' template_class='' av_uid='av-kuvihovt' sc_version='1.0' admin_preview_bg='']
This is 1/2 of the grid row, the other half has a background video.
[/av_textblock]
[/av_cell_one_half][av_cell_one_half vertical_align='top' padding='0px' padding_sync='true' background='bg_color' background_color='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_attachment='scroll' background_position='top left' background_repeat='no-repeat' link='' linktarget='' link_hover='' mobile_display='' custom_class='' template_class='' av_uid='av-2ohsgf' sc_version='1.0']
[av_codeblock wrapper_element='' wrapper_element_attributes='' codeblock_type='' alb_description='' id='' custom_class='' template_class='' av_uid='av-kuvijbtf' sc_version='1.0']
<style>
/* video background */
#background-video {
height: 100%;
width: 100%;
object-fit: cover;
z-index: -1;
}
/* page content */
p.text {
color: #fff;
font-weight: bold;
text-align: center;
font-size:2em;
}
span.text {
top: 30vh;
position: absolute;
z-index: 5;
left: 30%;
width: 50%;
}
@media (max-width: 750px) {
#background-video { display: none; }
body {
background: url("https://assets.codepen.io/6093409/river.jpg") no-repeat;
background-size: cover;
}
}
</style>
<video id="background-video" autoplay loop muted poster="https://assets.codepen.io/6093409/river.jpg">
<source src="https://assets.codepen.io/6093409/river.mp4" type="video/mp4">
</video>
<span class="text">
<p class="text">THIS IS A RIVER.</p>
<p class="text">How majestic.</p>
</span>
[/av_codeblock]
[/av_cell_one_half]
[/av_layout_row]
Hopefully this helps.
Best regards,
Mike
Hi,
Thank you for your patience and for the screencast, to add a menu item hover please try this css:
#sub_menu1 #menu-main-menu a:hover {
display: inline-block;
visibility: visible;
border-bottom: 2px solid #fff;
background: transparent !important;
opacity: 1;
padding-bottom: 6px;
}
I tested the scrolling issue and the jump occurs when the sub-menu position is changed from absolute to fixed, this is part of the script for the sticky sub-menu and this added script doesn’t programmatically affect this, it measures the height and distance of the element. I say “programmatically” but strange things can happen.
Anyways I stared at this for a long time scrolling up & down & reviewing your video, and I believe that this is based on the manual scroll speed. When I test with & without the script (on Chrome & Windows 10) if I scroll slowly the jump is almost not there and is the same with & without the script, but if I test quickly the jump really shows, but it seems to be the same with & without the script. I note that in your video the test without the script was slow, and the test with the script was fast.
So for me it was hard to be consistent manually scrolling, so I tested with this script which waits 2 seconds for the pages to load then scrolls down 1200px over 2 seconds, so it’s slow. I also adjusted the speed to 1 second so it was faster and 5 seconds so it was very slow. I did this with & without the script enabled, and in all cases the behavior was the same.
This was the test script if you would like to try in your your functions.php file:
function scroll_test_script() { ?>
<script>
(function($) {
setTimeout(function () {
$('html, body').animate({scrollTop: (1200)}, 2000);
}, 2000);
}(jQuery));
</script>
<?php
}
add_action('wp_footer', 'scroll_test_script');
Please see the videos below.
So I guess I don’t really have a solution for you, but considering that the auto scroll test went so well perhaps there is a script to force a slower mouse wheel scroll, but perhaps that would just frustrate users?
Best regards,
Mike