Hey there,
the title says it all. When I click on the images in my horizontal gallery and they open in a lightbox, I would like these images to appear in full-size, not a cropped version (I believe it’s “large”).
There’s an older thread with a post and solution for exactly this problem, only for a different gallery type and I don’t know how to make this code work for the horizontal gallery.
Thank you!
Hi Rikard,
We had the ID added to the first toggle so it would open when someone clicked “S” at the top of the page and jumped down to that area. We also have the ID applied to the “S” that is displayed above the accordion.
I added another header and accordion for “T” below what we have been looking at for “S” and that works with no issues. It has the ID set for the “T” header as well as the first toggle. You can also see the “S” is not displaying correctly with the ID applied to it and is overlapping the accordion slightly. I’m not sure why, but it looks like the issue has something to do with using the ID with the name of “s”. But I have no idea why.
Ryan
@ismael, i dont think we are looking at the same thing. did you check it on desktop view? the captions in the easy slider are white (mobile) indeed. but on desktop (images with titles) they are grey.
so the first question is about the images with titles (desktop)
the 2nd about easy slider (mobile) .how do i add the same overlay ?
Hey mandystohry1,
Thank you for the inquiry.
1.) You can add this css code to change the color of the submenu items on hover:
#top .av-subnav-menu li a:hover {
color: red;
}
2.) And to highlight the active item, please add this script in the functions.php file:
function ava_custom_script() { ?>
<script>
(function ($) {
$(document).ready(function () {
var currentUrl = window.location.href;
$('.av-subnav-menu .menu-item a').each(function () {
if (this.href === currentUrl) {
$(this).parent().addClass('active');
}
});
});
}(jQuery));
</script>
<?php }
add_action('wp_footer', 'ava_custom_script', 99);
Then add this css code:
#top .av-subnav-menu li.active a {
color: blue;
}
Best regards,
Ismael
Hi,
Thank you for the info.
The issue occurred because of this css rule:
#top .avia-layerslider .ls-wp-container .ls-slide-backgrounds * {
max-width: 100%;
}
We removed it from the Quick CSS field.
Best regards,
Ismael
Hi,
Yes, you can use the avf_responsive_media_sizes filter to adjust the breakpoints, but keep in mind that it will be applied globally and may affect various styling options across the site.
function avf_responsive_media_sizes_mod( $sizes ) {
$sizes = array(
'av-desktop' => array( 1024, 0 ), // Desktop view: Min width 1024px
'av-medium' => array( 769, 1023 ), // Medium view: 769px to 1023px
'av-small' => array( 481, 768 ), // Small view: 481px to 768px
'av-mini' => array( 0, 480 ) // Mini view: 0px to 480px
);
return $sizes;
}
add_filter( 'avf_responsive_media_sizes', 'avf_responsive_media_sizes_mod' );
Best regards,
Ismael
Hi,
Thank you for the inquiry.
The caption titles look white when we checked. To center-align the container, please add this css code:
.avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption {
bottom: 31%;
left: 50%;
transform: translateX(-50%);
}
Best regards,
Ismael
Hi Mike,
Yes, I know that the Sticky Header feature is only for desktop. I have not tried disabling my plugins and code snippets since that could be a lot of work. I do have the admin login, just in case.
Thanks a lot,
Ramon
Hi,
The Sticky Header feature is not meant to work on mobile devices, for desktop it is working, perhaps you have added a plugin or code snippet that is a conflict.
Try did you try disabling your plugins and code snippets?
Also note that if you set this in the theme settings, each page also has this option that can be overridden, so check the page that you are having trouble with.
Otherwise we will need a admin login to the page to check.
Best regards,
Mike
@mike, ah! I guess i added that piece of code in the child theme from way before when it wasn’t possible to change the H-tag yet. Thanks for disabling it.
Two challenges/issues:
1. A new problem that occurs is that I set the H3 tag font colour and size in the Enfold Child panel under advanced. I notice that this is overrulling CSS and even settings that I make manually in the advanced layout builder. (in this case I set the image with the tilte ‘rug’ to white text PLUS i added CSS which should set the color to white and to the desired font weight.
is there a way to overrule the adjustments I’ve made under the advanced panel with CSS? (this was more relevant to this: https://kriesi.at/support/topic/change-caption-of-image-to-h3/)
It’s not really desired from my perspective that I change the setting of all H3 captions manually / via other CSS
2. Basically, what I want to achieve, is to get display the same content I have placed in columns (‘rug’, ‘schouders’, ‘elleboog’) into a slider. perhaps there is another way to achieve this, rather than putting the same content into a easy slider and hide/diplay elements on mobile vs desktop. I want to do this throughout the site, for example you see https://fysiobreda.thedigitalmanager.nl/behandelingen/dry-needling/ , then I want to but all those ‘body parts’ into a slider as well.
Hi
As per the earlier reply from Rikard, the below code seemed to work fine for waht I required.
#menu-item-1510 {
position: absolute;
right: -234px;
top: 33px;
}
However, I have had a comment back that the button is cut off when viewing on certain devices/screen sizes on Chrome (see screen capture in private).
It display fine for me on Chrome, but let me know if anything needs tweaking in the CSS
Thanks
Hey Woutski,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.container_wrap { border-top: none !important; }
After applying the css, please clear your browser cache and check.
If this doesn’t help, please link to your page so we can examine.
Best regards,
Mike
Hi All
At the top of some pages, not in the header, I have a content section which gives a very small gray border at the bottom.
All settings are correct. When I duplicate the content section and place it underneath the top one, the bottom border of the top one disappears and shows itself on the lower one.
How to solve this
Best regards,
Woutski
By inserting horizontal images of 1065*800 pixels, these are visible entirely on 1920*1080 or 1680*1050 desktop screens because the Content Area still has dimensions larger than the images themselves.
The same result is obtained with vertical images 600*800.
Reducing the screen size (for example to 1360*768), the horizontal images (1065*800) are automatically resized according to the width, so they fit on the screen even if you cannot see them in full because the new vertical size is slightly larger to the screen itself.
However, in the case of vertical images, automatic resizing does not occur because the width of the images (600) is much smaller than the screen (1360).
What parameter can I force or what code can I use to get vertical photos scaled by height instead of width, if that size is higher than the monitor size?
Hey Tilman,
Please check if you have selected to show the Excerpt field under Screen Options in the top right hand corner of the screen while editing a post.
Best regards,
Rikard
the benefit of placing the code to my example page is – you can copy the code with one click: if you hover the css code field – there is on top right a copy button
Hey chiller3,
Thank you for your patience, when you use this solution you need to add custom links to each image link on your homepage, currently all point to https://wach.design/guteraeume/kollektion/ with no hash tag.
your Hash tags need to be for the sort data-filter like:
#accessoires_sort
#regale_sort
#betten_sort
#lampen_sort
#sessel_sort
#sofas_sort
#stuehle_sort
#teppiche_sort
#tische_sort
I tested and it works.
Best regards,
Mike
Hi,
If you don’t have WordPress ▸ Appearance ▸ Theme File Editor enabled on your site then use FTP
If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:

and ensure that it is activated, then add the above code and save.
Best regards,
Mike
Hi,
On mobile, I see that you are using the “easy slider” to change the H tag, click on the element and go to each slide, under the advanced tab change the heading tag:

you had this code in your child theme function.php causing a conflict:

I disabled it for you.
Change the font size under the styling tab:

to center add this css:
.avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption {
bottom: 30%;
left: 30%;
}
Best regards,
Mike
Lighthouse was downgrading my Best Practices report on this website with an “Ensure CSP is effective against XSS attacks” error. This is Google’s reference page: https://developer.chrome.com/docs/lighthouse/best-practices/csp-xss/
I found this thread and implemented Guenni007’s solution as he posted it.
Whilst my Best Practices score is now 100 Lighthouse is still generating the same main error as above but now with these specific details:
script-src
directive is missing. This can allow the execution of unsafe scripts.
Missing object-src
allows the injection of plugins that execute unsafe scripts. Consider setting object-src
to 'none'
if you can.
(Quite how I get a score of 100 when there are still errors seems a bit bizarre to me, whatever…)
I have no idea how to alter .htaccess to fix this: please can you make a suggestion?
Hey Ad-Min747,
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
add_action('admin_bar_menu', function ($wp_admin_bar) {
if (!current_user_can('administrator')) {
$wp_admin_bar->remove_node('avia');
}
}, 999);
function hide_enfold_theme_options_menu() {
if (!current_user_can('administrator')) {
echo "<style>#toplevel_page_avia { display: none; }</style>";
}
}
add_action('admin_head', 'hide_enfold_theme_options_menu');
Best regards,
Mike
Hi,
Thank you for your patience, when I check your /design-portfolio/ page with webpagetest.org as a desktop it loaded around 4s
as mobile, it loaded around 8s, I found that your WP-Optimize plugin created separate files for mobile:

when I disable this it then loaded around 6s for mobile.
webpagetest.org uses 4g for mobile and page speed uses 3g, in both cases the mobile tests are throttled down and a real world device may use a 5g connection.
Your bluehost plugin is also caching, so you have the theme cache, WP-Optimize cache, and bluehost cache.
You could test the different settings in each, but in my experience, 4s for desktop and 6s for mobile is fair.
Best regards,
Mike
Hi,
Try adding your “Home” menu link and add this custom class:
av-desktop-hide

Best regards,
Mike
Hi,
I’m not able to login as admin, so it is hard to tell what css might be causing a conflict.
But it looks like adding this css helps:
@media only screen and (max-width: 1650px) {
.responsive #top .cart_dropdown {
z-index: 600;
}
}
when clicking on the far left of the cart button

Best regards,
Mike
Hi,
Thanks for your advice Guenni007
iveyeng I don’t have an iphone, but I checked on a Mac in safari and found that after I cleared your WP Rocket plugin and cleared the Safari plugin the css is working.
Please note that testing with iPads & iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.
I also noted the safari needed a different value, 177px instead of 190px for Android, so I adjusted the css to this:
@media only screen and (max-width: 767px) {
.responsive.avia-safari #top #wrap_all #header {
height: 177px !important;
}
}
@media only screen and (max-width: 767px) {
.responsive #top #wrap_all #header {
height: 190px;
}
}
This is the Safari mobile view:

If you still don’t see this try disabling your WP rocket plugin until to finish building your site.
Best regards,
Mike
Hey Vera,
I can’t see any problem on my end, I see the same font on desktop as I do on phone emulation and on an actual Android device. How can we reproduce the results that you are seeing on your end?
Best regards,
Rikard
Hello,
I can see the changes when using Chrome dev tools mobile emulator on desktop. But on my phone (iPhone 14 Pro) after clearing browser cache, it still does not take effect. I tried it in Safari and Chrome. I’m wondering if I should try deleting and reinstalling the apps? I’ll try checking on someone else’s mobile device or a tablet. Thanks for your help.
When saving a modified page in side builder, it returns the unchanged page.
[22-Nov-2024 19:01:58 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property “ID” on null in /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php:398
Stack trace:
#0 /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1329): avia_sc_upcoming_events->shortcode_handler()
#1 /homepages/xx/xxxx/htdocs/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare()
#2 [internal function]: do_shortcode_tag()
#3 /homepages/xx/xxxx/htdocs/wp-includes/shortcodes.php(273): preg_replace_callback()
#4 /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode()
#5 /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section/section.php(1547): ShortcodeHelper::avia_remove_autop()
#6 /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1329): avia_sc_section->shortcode_handler()
#7 /homepages/xx/xxxx/htdocs/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare()
#8 [internal function]: do_shortcode_tag()
#9 /homepages/xx/xxxx/htdocs/wp-includes/shortcodes.php(273): preg_replace_callback()
#10 /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php(3195): do_shortcode()
#11 /homepages/xx/xxxx/htdocs/wp-includes/class-wp-hook.php(324): AviaBuilder->text_to_preview()
#12 /homepages/xx/xxxx/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#13 /homepages/xx/xxxx/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#14 /homepages/xx/xxxx/htdocs/wp-admin/admin-ajax.php(192): do_action()
#15 {main}
thrown in /homepages/xx/xxxx/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php on line 398
Hi Rikard,
I’m not able to provide you login info for the live website, but can for our staging copy of the website.
I created a version of the page there and added the links across the top that would jump down to the accordion for the letters in the alphabet. Since it was the “S” header and accordion that was having the issue, I just added those to this page and nor all the other accordions. I’m seeing the same issue here. I have no idea why we would just see this happen for “S”, but at least the issue is consistent.
Below is the info you would need for the staging website.
Thanks!
Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
@media only screen and (max-width: 767px) {
.responsive #top #wrap_all .flex_column {
margin-bottom: 0px;
}
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike