-
Search Results
-
Hi Enfold team,
I’m using the Enfold Gallery element in WordPress (Avia Layout Builder). I’m trying to achieve a CSS-only UX like this:
The large preview image stays at the top and is sticky while the user scrolls down through the thumbnails below it.
Once the thumbnails end, the page continues scrolling normally to the next section.
I’m not using any JS. I added a custom class to the Gallery element and tried multiple CSS approaches. I can sometimes get sticky to work, but then the layout breaks (preview shifts left / preview becomes tiny / thumbnails become huge or microscopic / only a few thumbs show per row). When I fix thumbnail sizing, the sticky behavior stops working.
What I’m using
Enfold theme (latest) + WordPress
Gallery element style: big preview + thumbnails (the normal preview-on-top layout)
I added a custom class on the Gallery element: av-gallery-sticky-scroll
What I want (exact behavior)
Keep Enfold’s default layout: big image on top, thumbnails below
Make only the big preview sticky (position: sticky; top: …)
Thumbnails should remain a normal-sized grid below
No inner scrolling container — I want normal page scroll, with preview sticking until the thumbnail list ends
CSS attempts (examples)
I tried sticky on .avia-gallery-big and also .avia-gallery-big-inner (in case the inner wrapper is needed), plus forcing overflow: visible on likely parents. I also tried overriding thumbnail widths using flex/grid.
Example of my latest attempt:
@media (min-width: 990px){
.av-gallery-sticky-scroll{
–stickyTop: 120px;
–thumbSize: 140px;
}.av-gallery-sticky-scroll .avia-gallery-big,
.av-gallery-sticky-scroll .avia-gallery-big .avia-gallery-big-inner{
position: sticky;
top: var(–stickyTop);
z-index: 50;
}.av-gallery-sticky-scroll,
.av-gallery-sticky-scroll .avia-gallery,
.av-gallery-sticky-scroll .avia-gallery-big{
overflow: visible !important;
}.av-gallery-sticky-scroll .avia-gallery-thumb{
display: grid !important;
grid-template-columns: repeat(auto-fill, var(–thumbSize));
gap: 12px;
margin-top: 14px;
justify-content: start;
}.av-gallery-sticky-scroll .avia-gallery-thumb li{
float: none !important;
width: auto !important;
margin: 0 !important;
padding: 0 !important;
}.av-gallery-sticky-scroll .avia-gallery-thumb img{
width: 100% !important;
height: auto !important;
display: block;
}
}Result: thumbnail sizing becomes unpredictable (either microscopic or huge), and sticky often stops working.
My questions
Is it possible CSS-only to make the Gallery element’s big preview sticky (preview on top, thumbs below) without breaking Enfold’s internal thumb sizing/layout rules?
Is there a recommended selector/wrapper inside the Gallery element that is safe to apply position: sticky to?
If sticky fails because of an Enfold container overflow rule, which wrapper should I override (and is there an Enfold setting that influences this)?
If this isn’t feasible with the Gallery element, is there a recommended Enfold-native alternative (e.g., specific element/layout pattern) that support suggests?
Thanks,
RobHELP!
I don’t want t0 rebuild what is missing..[av_section min_height='custom' min_height_pc='25' min_height_px='300px' padding='default' custom_margin='0px' custom_margin_sync='true' color='main_color' background='bg_color' custom_bg='#f2f2f2' src='https://cdnbeefperforms.ca/wp-content/uploads/2024/03/frying-pans-bg-scaled-1030x687.jpg' attachment='25287' attachment_size='large' attach='scroll' position='center right' repeat='stretch' overlay_enable='aviaTBoverlay_enable' overlay_opacity='0.5' overlay_color='#000000' shadow='no-border-styling' bottom_border='no-border-styling']
[av_heading heading='Foodservice Resources' tag='h2' style='blockquote modern-quote' subheading_active='subheading_below' color='custom-color-heading' custom_font='#ffffff' padding='10' custom_class='white']
New resources provided by Canada Beef and the Canadian Beef Centre of Excellence.
[/av_heading]
[/av_section][av_section min_height_pc='25' min_height_px='500px' padding='default' custom_margin='0px' custom_margin_sync='true' color='main_color' background='bg_color' shadow='no-border-styling' bottom_border='no-border-styling']
[av_one_fourth first min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Appetizers and Soups</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Appetizers_and_Soups_Interactive_F-pdf-796x1030.jpg' attachment='25496' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/03/RS12961_Menu_Planner_Appetizers_and_Soups_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Beef cuts, known for their rich and savory flavours, are the perfect addition to any soup or appetizer spread. From tenderloin to brisket, there are endless possibilities to create delicious bites that will leave your guests craving for more.
[/av_textblock]
[/av_one_fourth][av_one_fourth min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Beef Bowls</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Beef_Bowls_Interactive_F-pdf-796x1030.jpg' attachment='25498' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/10053_CB_Beef_Bowl_Menu_Planner_Ph5F_Digital.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Beef bowl entrées are a popular choice among meat lovers and food enthusiasts. These hearty and satisfying dishes showcase the versatility and succulence of various beef cuts. Each cut adds its unique flavour and texture to the dish
[/av_textblock]
[/av_one_fourth][av_one_fourth min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Burgers</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Burgers_Interactive_F-pdf-796x1030.jpg' attachment='25500' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/RS12961_Menu_Planner_Burgers_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Beef burgers are highly popular and versatile, ideal for quick service and diverse culinary styles. Easy to customize and profitable, they appeal to a broad customer base, fitting various dining settings from fast food to gourmet restaurants, ensuring consistent demand and customer satisfaction.
[/av_textblock]
[/av_one_fourth][av_one_fourth min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Sandwiches, Flatbreads and Wraps</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Sandwiches_Flatbreads_and_Wraps_Interactive_F-pdf-796x1030.jpg' attachment='25502' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/RS12961_Menu_Planner_Sandwiches_Flatbreads_and_Wraps_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Sandwiches, flatbreads, and wraps are versatile dishes that can be made using various ingredients, and beef cuts are an excellent choice to add a hearty and satisfying flavour to these dishes.
[/av_textblock]
[/av_one_fourth][av_one_fourth first min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Entrées Salads</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Entree_Salads_Interactive_F-pdf-796x1030.jpg' attachment='25505' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/RS12961_Menu_Planner_Entree_Salads_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Beef cuts in salads offer a hearty twist, bringing savoury slices of sirloin or flavourful strips of flank steak to vibrant greens and vegetables. Grilled to perfection, these cuts elevate salads, adding richness and a protein-packed punch to every bite.
[/av_textblock]
[/av_one_fourth][av_one_fourth min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Kids Menu</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Kids_Menu_Interactive_F-pdf-796x1030.jpg' attachment='25507' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/RS12961_Menu_Planner_Kids_Menu_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
A kids menu featuring beef cuts offers tasty and nutritious options that cater to young tastes. These meals aim to please young palates while delivering essential protein and nutrients for their growth.
[/av_textblock]
[/av_one_fourth][av_one_fourth min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Entrées</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Entree_Classics_Interactive_F-pdf-796x1030.jpg' attachment='25509' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/RS12961_Menu_Planner_Entree_Classics_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Beef cuts can be utilized to create a variety of delicious entrée classics that are sure to satisfy any meat lover’s palate. The possibilities for creating delicious entrée classics are endless.
[/av_textblock]
[/av_one_fourth][av_one_fourth min_height='av-equal-height-column' vertical_alignment='av-align-top' margin='40px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Senior Living</h4>
[/av_textblock]
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/05/CDNB_Culinary_Planner_Senior_Living_Interactive_F-pdf-796x1030.jpg' attachment='25511' attachment_size='large' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View Now' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/05/RS12961_Menu_Planner_Senior_Living_Interactive_F_LowRes.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[av_textblock]
Entrées for seniors using beef cuts offer a wide range of options that are both nutritious and appetizing. These entrees can provide the necessary nutrients for seniors while catering to their specific dietary needs and preferences.
[/av_textblock]
[/av_one_fourth][/av_section]
[av_section min_height='custom' min_height_pc='25' min_height_px='300px' padding='default' custom_margin='0px' custom_margin_sync='true' color='main_color' background='bg_color' custom_bg='#f2f2f2' src='https://cdnbeefperforms.ca/wp-content/uploads/2023/12/RS12752_RS11619_Tuscan-inspired-Grilled-Steak-1500x430.jpg' attachment='25111' attachment_size='featured' attach='scroll' position='center right' repeat='stretch' overlay_enable='aviaTBoverlay_enable' overlay_opacity='0.5' overlay_color='#000000' shadow='no-border-styling' bottom_border='no-border-styling']
[av_one_half first vertical_alignment='av-align-middle' space='3']
[av_heading heading='VIDEO' tag='h1' style='blockquote modern-quote modern-centered' subheading_active='subheading_below' color='custom-color-heading' custom_font='#ffffff' padding='10']
<div style=”font-size:24px;”>CANADA PRIME GRADE BEEF</div><div style=”font-size:24px;padding-top:10px;”>MASTER CHEF</div>
[/av_heading]
[/av_one_half][av_one_half]
[av_textblock]
<div style=”border:solid 5px #f5f7f7; padding: 56.25% 0 0 0; position: relative;”>
<iframe style=”position: absolute; top: 0; left: 0; width: 100%; height: 100%;” title=”Canada Prime Grade Beef – Master Chef” src=”https://player.vimeo.com/video/1074398616?badge=0&autopause=0&player_id=0&app_id=58479″ frameborder=”0″></iframe>
</div>
[/av_textblock]
[/av_one_half][/av_section]
[av_section padding='default' custom_margin='0px' custom_margin_sync='true' color='main_color' background='bg_color' custom_bg='#f2f2f2' shadow='no-border-styling' bottom_border='no-border-styling']
[av_two_fifth first margin='0px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_image src='https://cdnbeefperforms.ca/wp-content/uploads/2024/03/RS12896_9582_2024_CB_Foodservice_Merch_Poster_F-1-pdf-scaled.jpg' attachment='25327' attachment_size='full' align='center' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in']
[/av_image]
[av_button label='View PDF' link='manually,https://cdnbeefperforms.ca/wp-content/uploads/2024/03/RS12896_9582_2024_CB_Foodservice_Merch_Poster_F-1.pdf' link_target='_blank' size='large' position='center' color='black' custom_bg='#444444' custom_font='#ffffff']
[/av_two_fifth][av_three_fifth margin='0px' margin_sync='true' padding='40px' padding_sync='true' background='bg_color' background_color='#f2f2f2']
[av_textblock]
<h4 style=”text-align: center;”>Foodservice Beef Merchandising Guide Poster</h4>
[/av_textblock]
[av_textblock]
<p style=”text-align: center;”>Educate your front and back of house staff about the versatility of Canadian Beef with the new Foodservice Merchandising Poster, powered by the Canadian Beef Information Gateway. Users can scan QR codes to learn how to merchandise each foodservice-specific beef subprimal through videos, photographs, and more. Each subprimal also has product specifications to ensure informed purchasing, and commercial recipes to inspire your team to do more with Canadian Beef. Users can also access information about the Canadian Beef Advantage, including our gate-to-plate virtual tours, enabling further discussions about the unique qualities of Canadian Beef to customers.</p>
[/av_textblock]
[av_textblock]
[gravityform id=”39″ title=”true” description=”false” ajax=”true”]
[/av_textblock]
[/av_three_fifth][/av_section]
Hallo zusammen!
Ich habe die Schritte wie in https://kriesi.at/support/topic/pop-up-lightbox/#post-1429407 beschrieben umgesetzt und dann den Shortcode von einem Formular eingefügt. Mein Ziel ist es, ein Formular in einem Popup anzuzeigen, wenn man auf einen Button klickt.
Also:
function magnific_popup_with_no_scroll_and_button() { ?> <script> (function($) { $(window).on('load', function(){ $('.open-popup-button a').addClass('open-popup-link'); $('.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', 'magnific_popup_with_no_scroll_and_button', 99 );Das in die functions.php eingesetzt.
Eine Code-Box mit folgendem Inhalt erstellt:
<div id="open-popup" class="popup mfp-hide"> <p>[av_layout_template template_id='popform']</p> </div>Und auch das im Quick-CSS hinzugefügt:
.popup { position: relative; background: #FFF; padding: 20px; width: auto; max-width: 500px; margin: 20px auto; }Weil es nicht funktioniert hat habe ich auch das noch hinzugefügt:
add_filter('avia_allow_shortcodes_in_codeblock', '__return_true'); add_filter('avf_alb_support_modal_templates', '__return_true');Leider funktioniert es nicht. Es öffnet sich ein Modal aber darin steht nur der Shortcode. Ich bin ratlos. Kann mir bitte jemand dabei helfen das hinzubekommen.
Link zur Testseite im PC.
Recently on my site, after updating to Enfold 7.1 (WP 6.8.1), I am seeing p tags getting added automatically. This should not happen. How do I stop this from happening? Here are 2 examples of this happening:
<p class=”ai-optimize-89″></p>
<p class=”ai-optimize-96″>
<style type=”text/css” data-created_by=”avia_inline_auto” id=”style-css-av-2w1fh1-60a2143162635ac4b509f8d4973bd200″>
.avia-section.av-2w1fh1-60a2143162635ac4b509f8d4973bd200{
background-repeat:no-repeat;
background-image:var(–wpr-bg-d2d137c8-5f7d-4d64-9d8d-23b56da50b14);
background-position:0% 0%;
background-attachment:scroll;
}
</style>
</p>How do we make each section of a page automatically fit the whole screen vertically. Similar to your “One Page” Demo. But each page that we make, as you scroll down through the page, we want each section to fill the screen vertically so you have clear distinct sections that fill the screen.
Hey there my home page is automatically scrolling on mobile – this doesn’t happen on other pages. Please help!

















