Hi,
We added this script to move the sales count under the ratings
function ava_custom_script_move_product_sales_count()
{
?>
<script type="text/javascript">
(function ($)
{
$(document).ready(function () {
var salesCount = $('.product-sales-count');
var productRating = $('.woocommerce-product-rating');
salesCount.insertAfter(productRating);
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_move_product_sales_count', 9999);
And added this code in the Quick CSS field to adjust the style a bit.
.product-sales-count {
font-size: 0.8em;
margin-top: 0;
top: -10px;
position: relative;
}
Best regards,
Ismael
Hey Jak73,
Thank you for the inquiry.
The video is muted by default because browsers don’t allow videos to autoplay unless they are muted. Please check this article for more details: https://developer.chrome.com/blog/autoplay
Chrome’s autoplay policies are simple:
Muted autoplay is always allowed.
Autoplay with sound is allowed if:
The user has interacted with the domain (click, tap, etc.).
On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
The user has added the site to their home screen on mobile or installed the PWA on desktop.
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.
You may need to use the Video element if the video needs to include audio.
Best regards,
Ismael
I’m using Enfold’s Avia Layout Builder in the WP classic editor to create a table using the Table content element. For the heading row at the top of the table, I’ve found that I can use the Button Row option to create nice-looking popup headers.
This worked great the first time out on a page where I wanted the “button headings” to actually have links. But now I am trying to use a clone of the same table to create a new table on a page where I don’t want the button headings to have links. Alas, I find that the buttons only have two options: link and download. If I leave the link box in the settings blank, the button just links back to the same page.
So my question is: Is there a way using the Avia Table content element to have the buttons in the heading row as purely graphic elements, without them being active as a link (or download)?
We were able to get a pattern of the rendering loop out of the Traces that might help:
– avia_sc_blog::shortcode_handler
… [ WP Core Template functions ] …
– aviaShortcodeTemplate::shortcode_handler_prepare
– avia_sc_section::shortcode_handler
… [ WP Core Template functions ] …
– aviaShortcodeTemplate::shortcode_handler_prepare
– avia_sc_columns::shortcode_handler
… [ WP Core Template functions ] …
– aviaShortcodeTemplate::shortcode_handler_prepare
-> Start from the top
There are around 1000 calls of this pattern in one single Trace.
Hi Enfold,
On a website we maintain, there is an error with the combination of the use of tabs and GravityForms. It happens that the height of the tab content is set to be the same height of the original content. However, when an error message in GravityForms happens, it takes up a lot of space and puts error messages on top of the fields, thus increasing the height. This manages to break the layout and break the tab structure. Activating AJAX on the GravityForms submission does fix some of the problems but it still happens to cut off certain information. I have made a video regarding the issue:
https://vimeo.com/1045345744
Could you look into this issue? I think it is a theme issue, as using the Troubleshooting mode makes me believe it is something with recalculating the height whenever such an event has been triggered.
It seems to happen on the second tab mostly, the first tab seems fine. AJAX does solve some of the problems, but still some space is occupied then.
Kind regards,
Sietse
Hey there,
we just came across one of those nasty scaling issues on a clients site of ours.
They run Enfold with nearly 1k posts (real post_type=”post”) besides even more pages and other CPTs.
Yesterday they hit “a wall” causing reproducible OOMs on their posts in the editor as well as on the Frontend and other parts of the website.
Some context information (although mostly irrelevant):
PHP 8.1
Enfold 6.0.6
WP 6.7.1
Max Mem: 512M
Avg Max Mem Consumption on Posts in Frontend and Backend: ~80M
We dug deep and ran APM Traces on the problematic posts. We figured out that a combination of the following UI Builder Element(s) and Post Config is a guarantee to hit the OOM at some point in time:
– Create a Post and add it to Category “A”
– Add the following ALB Element(s) to the Post:
— “Blog Posts” with “Show Blog Posts” and select Category “A” to display (<– The clients have this configured to be recursive as the same post will be displayed in the list itself – don’t think they did this intentionally they just did not set an offset)
— “Entry Slider” with some other Category than “A”
– Create many of these Posts
For reasons we have not analyzed in the Enfold code yet the APM clearly showed a loop triggered between “do_shortcode” and “load_template”. With many occurences in “locate_template”, “get_template_part”, “avia_sc_blog::shortcode_handler” and “aviaShortcodeTemplate::shortcode_handler_prepare”.
As the whole OOM is gone when the “Show Blog Posts” element is removed from the Post we assume that the Blog Post Element kind of itself “renders” the content of all of it’s displayed blog posts, leading to a rendering of all of the selected blog Posts of the Blog Posts element on that page, leading to a rendering of all of the selected blog Posts of this element…… [-loop-].
The issue is so wide spreading that all of the posts being using this Element with the Category “A” are OOM. Some other functions of the site were OOM as well but we did not analyzed deeper as these errors were gone as soon as we solved the issue with the Post. I assume they might have some relationship to one of the “OOM posts”.
To fix the wide spread OOM we simply needed to move the latest post to the trash. Restoring it lead to OOM at all effected posts again. Or removing the Blog Posts Element.
Increasing the memory of the site did not help at all. Within the WordPress backend editor there is no obvious high memory consumption when analyzing with Query Monitor for example.
The findings clearly indicate that there is a loop that needs to be stopped at some point.
Hope you can assist and find way to allow our clients to continue using the elements with referencing their posts internally.
If you believe this can be solved by a configuration change in one of the UIB Elements, let me know. But I fear they will not be happy if they have to change several hundreds of posts ;-).
Thank you very much and best regards,
Jan
Hey schweg33,
Thank you for the inquiry.
The logo is not clickable because the header is covering it. Please add this css code to adjust the width of the header container and move it to the right, away from the logo.
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
.responsive #top #wrap_all .av-logo-container {
padding: 0;
width: 100px;
margin: 0;
position: absolute;
right: 50px;
}
}
Best regards,
Ismael
Hey filmblau,
Thank you for the inquiry.
These are the recommendations by the insight tool:
There are a number of WordPress plugins that can help you inline critical assets or defer less important resources. Beware that optimizations provided by these plugins may break features of your theme or plugins, so you will likely need to make code changes.
WP Rocket
Enable Remove Unused CSS and Load JavaScript deferred in ‘WP Rocket’ to address this recommendation. These features will respectively optimize the CSS and JavaScript files so that they don’t block the rendering of your page.
Have you tried enabling the option in the WP Rocket plugin and installing a compression plugin such as Autoptimize? You can also enable the theme’s Enfold > Performance > File Compression settings and disable the compression option from the cache plugin. Let us know of the result.
Best regards,
Ismael
Hi – I still need help with this please:
I did try posting but it’s been closed and it didn’t look like it saved?
The problem we are having is the red bar gets in the way of the menu so you can’t access the menu.
Here is an example:
View post on imgur.com
On the mobile, the red bar doesn’t go behind the menu too like here:
View post on imgur.com
Hey ibuzaev,
Thank you for the inquiry.
Try selecting the second option (Show thumb and title by default), then add this css code to hide the thumbnail container.
#top .related_image_wrap {
display: none !important;
}
Let us know if this works for you.
Best regards,
Ismael
the trick is to have the correct proportion starting from a png with always the same size.
on my testpage all png got the outer-size of 400px x 600px and the dimension of the content is set by its relation to each other.
have you downloaded that zip from : https://kriesi.at/support/topic/image-alignment-in-text-box-with-captions/#post-1471811 and use them instead !
Hey coredesignsupport,
Thank you for your patience, the blocks have a negative top margin so they show outside the color section with the ID “Service”
Try removing this ID and add it to one of the blocks.
Best regards,
Mike
Hey Uli,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.container_wrap {
border-top-style: none;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
i think koksourcing belongs to the second level menu:
#top .av-main-nav ul ul {
margin-left: 0;
left: 208px;
position: absolute;
}
Hey melanie308,
Thank you for the inquiry.
In a Text or Code Block elementy, you can add something like this:
<div style="overflow: hidden;">
<img src="main-enfold.png" alt="Image" alt="Image" style="float: left; margin-right: 20px; max-width: 50%;">What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
Where can I get some?
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
</div>
Make sure to update the image URL.
Best regards,
Ismael
Hey ballindigital,
Thank you for the inquiry.
Please refer to this thread for a possible solution: https://kriesi.at/support/topic/change-search-icon-to-search-field-only-for-expanded-menu/#post-1474245
Best regards,
Ismael
Hi, this shortcode breaks other elements, for example, responsive mode does not work if I check the Hide on large screens (wider than 990px - eg: Desktop) fields, the same applies to other fields.
Then, Columns don’t work in responsive mode, they pack next to each other instead of going one below the other and so on…
For some reason the code from Ismael, for second menu below the main menu breaks the css rules for all other elements on page.
Is there a way to fix this issue ?
Thanks for advice
Darko
Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field instead:
#top .fullsize .template-blog .post_delimiter {
border-bottom-width: 3px;
}
adjust to suit.
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hey Renaud,
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 this code and save.
function custom_script() { ?>
<script>
(function($){
$('img').hover(function(e){
$(this).attr('data-title', $(this).attr('title'));
$(this).removeAttr('title');
},
function(e){
$(this).attr('title', $(this).attr('data-title'));
});
$('.av-masonry-image-container').hover(function(e){
$(this).attr('data-title', $(this).attr('title'));
$(this).removeAttr('title');
},
function(e){
$(this).attr('title', $(this).attr('data-title'));
});
$('a').hover(function(e){
$(this).attr('data-title', $(this).attr('title'));
$(this).removeAttr('title');
},
function(e){
$(this).attr('title', $(this).attr('data-title'));
});
})(jQuery);
</script>
<?php
}
add_action( 'wp_footer', 'custom_script', 99 );
Best regards,
Mike
Hey koksourcing,
Thank you for the inquiry.
You can adjust the position of the submenu with this css code:
#top .av-main-nav ul {
margin-left: 0;
left: -50px;
position: absolute;
}
Best regards,
Ismael
Hey Antonio,
Thank you for the inquiry.
This is not possible because when the browser is resized, the height of the slider is recalculated based on the height of the image. If you want to disable the transition, you can add this css code, but the image will still move after resizing.
#top .avia-slideshow-inner {
transition: none !important;
}
Best regards,
Ismael
Hey ibuzaev,
Thank you for the inquiry.
Yes, it’s safe to disable the thumbnails, but we don’t recommend it as they contribute to site speed optimization. If you still want to proceed, this thread should help: https://kriesi.at/support/topic/media-upload-and-enfolds-thumbnail-sizes/#post-1270140
Best regards,
Ismael
Hey vancestone,
Thank you for the inquiry.
It seems there is an issue with the padding. Please edit the element to adjust the padding values for mobile view, or add the following css code:
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
#top .flex_column.av-m4wep313-3e980d8dcd4f559ad7b43a97ffcbf586 {
padding: 0;
}
}
Please make sure to purge the cache and toggle the compression settings before testing.
Best regards,
Ismael
Hi,
It looks like you have this custom css:
.logo img {
position: relative;
top: 20px;
}
change to this:
@media only screen and (min-width: 768px) {
.logo img {
position: relative;
top: 20px;
}
}
Then clear your browser cache and check.
Best regards,
Mike
ok – dann geht es ja auch in deutsch.
Durch die optische Erhöhung des Headers ( du hast 100px eingestellt ) stimmt jetzt das padding-top von #main nicht mehr.
Um es wieder auf die korrekte Distanz zu bringen, kann man die neue Variable (–enfold-header-height) nutzen.
Leider kommt dann eine Farbe zum Vorschein, die über das hier gesetzt wurde (rhein_designer.css) :
bitte entfernen, oder eben die Farbe neu definieren – siehe unten
#main,
.avia-msie-8 .av_header_sticky_disabled#header {
background-color:var(--enfold-header-color-bg);
}
auch dein Hamburger Background sieht so aus. – schau mal ob es in den Enfold Optionen gesetzt wurde.
.html_header_top.html_header_sticky #top #main {
padding-top: calc(var(--enfold-header-height) + 100px) !important;
background-color: #FFF;
}
@media only screen and (max-width: 767px) {
.html_header_top.html_header_sticky #top #main {
padding-top: 100px !important;
}
.logo.avia-svg-logo svg {
top: 15px !important;
}
}
.html_header_top.html_header_sticky #top.page-id-28 #main {
background-color: #b3daa2;
}
#top .container_wrap {
border: none !important;
}
Hi there :)
Just bought Enfold and love it !
I do have an issue with the logo on mobile.
On PC version I want some white space on top of the logo… did this by adding css
strong.logo img{
padding: 20px 0px;
}
.logo img { position: relative; top: 20px; }
But now my logo is not showing correctly on the mobile version. In addition to this I would love to have the logo a bit smaller on mobile….
Thank you so much in advance
Hey ballindigital,
To move topbar below the header I added this script to your Snippets plugin.
function custom_script() { ?>
<script>
(function($) {
function a() {
$('#header_meta').detach().insertAfter('#header_main');
}
a();
})(jQuery);
</script>
<?php
}
add_action( 'wp_footer', 'custom_script', 99 );


please clear your browser cache and check.
Best regards,
Mike
Found the problem. I looked at the error messages you reference in Dev Tools on Edit Page and noted they were in one part caused by “unsafe-eval is not an allowed source of script in the following Content Security Policy directive”. If I remove all the Content Security Policy directives from .htaccess, Easy Slider works again. (I only added the CSP stuff initially a month or so ago and have not had need to edit Easy Slider until now.)
Thing is I was using the directives @Ismael suggested in this thread: https://kriesi.at/support/topic/wordpress-enfold-and-content-security-headers/ and there is no mention of unsafe-eval.
I confess to not really understanding all this CSP stuff and whilst I want the site secure it seems every time I tweak the CSP something else breaks, like Easy Slider. I note that @Guenni007’s last post indicates possible issues with LayerSlider re. CSP settings.
Bizarrely, when I remove the CSP directives, Lighthouse still gives me a 100 score for Best Practices with a note of “No CSP found in enforcement mode.”
So I guess we can close this thread – but how do we address the CSP problem? Can you work on a definitive set of CSP directives that are fully compliant with all elements of Enfold?
Hello Mike,
Now it’s me who’s replying so late. Thank you very much, I have understood that so far. Maybe this is an update idea, because it is becoming more and more important, in my opinion, that you can define a mobile version well and the desktop version can then be designed accordingly. So that everything can be easily administered without, for example, having to maintain the same text blocks twice.
Best regards
Matthias