Forum Replies Created
-
AuthorPosts
-
Hi,
Try to add this code in the functions.php file to add a custom sales badge above the product image.
add_filter('woocommerce_sale_flash', 'avf_woocommerce_sale_badge', 10, 3); function avf_woocommerce_sale_badge($badge, $post, $product) { if ($product->is_on_sale()) { return '<span class="av-custom-sale-badge">Sale!</span>'; } return $badge; }
Then apply this css code:
.av-custom-sale-badge { position: absolute; top: 10px; left: 10px; background: #7E9A47; color: white; padding: 5px 10px; font-size: 14px; font-weight: bold; border-radius: 5px; z-index: 10; }
Best regards,
IsmaelHi,
But now there are 2 short black horizontal lines left and right. What are they? How to get rid of them?
That is the border of the color section inside the footer page. Please refer to this thread: https://kriesi.at/support/topic/new-bug/#post-1479123
Best regards,
IsmaelHi,
Try to add this css code:
body #header_main .av-logo-container { position: absolute; top: 0; }
There might be other css rules applied to the original language but not to the EN version.
Best regards,
IsmaelMarch 12, 2025 at 6:00 am in reply to: Limit quantity of categories listed in categories widget #1479124Hi,
We are not sure if it’s possible to sort the category by date, but you can try this:
/*to limit issues listed in footer category widget so it is not too long*/ function avf_widget_categories_args_mod( $cat_args, $instance ) { if($instance['title'] == 'Issues A') { $cat_args['number'] = 5; // Limit to 5 categories. $cat_args['orderby'] = 'date'; $cat_args['order'] = 'DESC'; } return $cat_args; } add_filter( 'widget_categories_args', 'avf_widget_categories_args_mod', 10, 2 );
Best regards,
IsmaelHey ausgesonnen,
Thank you for the inquiry.
That is the default border of the color section in the footer page — not a bug. To remove the border and add spacing below the first color section with the background image, you can add this css code:
.footer-page-content #av_section_3 { border: 0; } .page-id-31 #av_section_1 { padding-bottom: 50px; }
Best regards,
IsmaelHi,
Thank you for the inquiry.
Have you tried using 1/3 Column elements? To center align the items in the second row, you can apply a left margin to the first item/column in the second row.
#top .flex_column.av-akkm-b2445ebeda64d34ec76acb1a0564417e { margin-left: 16.5%; }
Best regards,
IsmaelHi,
We adjusted the css for the slider in the livraison-en-afrique page. Please make sure to purge the cache before testing.
Best regards,
IsmaelMarch 11, 2025 at 11:26 am in reply to: Single Product Slider and/or Product Grid Plugin Additions #1479073Hi,
That is probably due to this css code:
.responsive #top #main .avia-product-slider-container .products .product { margin: 0 0 20px 0; width: 100%; }
We no longer see this issue when we checked the site live.
If the issue persists on your end, you can include this code in the css media query:
.responsive #top #main .avia-product-slider-container .products .product { margin: 0 1% 1% 0; width: 49%; }
Best regards,
IsmaelHey dradoering,
Thank you for the inquiry.
Have you done any page speed optimization to the site? If you haven’t, please review the following articles:
— https://kriesi.at/support/topic/pagespeed-100100/
— https://gtmetrix.com/wordpress-optimization-guide.htmlYou can start by installing a cache plugin such as WP Super Cache or WP Rocket and compressing the images. The LCP should improve once you’ve completed the steps above.
Best regards,
IsmaelHi,
We modified the code in the Quick CSS field:
@media only screen and (max-width: 768px) { #top .avia-slideshow.av-lu5z97j3-d1f957c8c38e449b8b56e5cb4753112f .avia-slideshow-slide img { min-height: 500px; object-fit: cover; } #top .av-m7nj2xd7-f8dc5edf704b129f594536c49dabd9b8.avia-slideshow li img, #top .av-m8474mmq-b8b082188475e1a03955aab66d3e8639 li img, #top .av-m7utj0fm-55a4085e08fb8dd95eeb6325426a31b7 li img { height: 300px; object-fit: cover; object-position: right; } }
Result:
We also disabled the Enfold > Performance > File Compression settings temporarily. You can enable it back when you’re done editing the site.
Best regards,
IsmaelHey ballindigital,
Thank you for the inquiry.
You could apply a minimum height to the special heading element:
@media only screen and (max-width: 767px) { #top .av-special-heading { min-height: 61px; } }
Please note that the modification above will apply to every Special Heading element. You may need to apply a custom css class to the elements where you want this to be applied.
— https://kriesi.at/documentation/enfold/add-custom-css/#enable-custom-css-class-name-support
Best regards,
IsmaelHey ballindigital,
Thank you for the inquiry.
It looks like you have already applied the adjustments. If you’d like to increase the image size further, you can add this css code:
#top.single .single-product-main-image { width: 50%; float: left; margin-right: 50px; overflow: hidden; padding-bottom: 50px; } #top.single .product div.images img { width: 100%; height: auto; max-height: unset; margin: 0 auto; }
Best regards,
IsmaelMarch 11, 2025 at 4:38 am in reply to: Limit quantity of categories listed in categories widget #1479055Hi,
Thank you for the info.
This is possible, but you need to apply a different title to the widget to differentiate it from the others. We adjusted the widget title in Footer – Column 4 to Issues A, then edited the filter as follows:
/*to limit issues listed in footer category widget so it is not too long*/ function avf_widget_categories_args_mod( $cat_args, $instance ) { if($instance['title'] == 'Issues A') { $cat_args['number'] = 5; // Limit to 5 categories. } return $cat_args; } add_filter( 'widget_categories_args', 'avf_widget_categories_args_mod', 10, 2 );
We adjusted the limit to 5.
Best regards,
IsmaelHi,
Thank you for the info.
In the style.css file, you have the following css rules that target specific widgets using #custom_html-2 or #custom_html-3. These rules don’t apply to the EN version because the widget there has a different ID, #custom_html-4.
body #header_main #custom_html-2 .col.btn a, body #header_main #custom_html-3 .col.btn a { display: block; background-image: linear-gradient(#d9c596, #b39b60); padding: 0 25px 0 25px; color: #050607; font-size: 14px; font-weight: 700; border-radius: 25px; max-height: 40px; line-height: 40px; text-transform: uppercase; margin-top: 5px; }
Please update the css to include the widgets in the EN version.
Best regards,
IsmaelHi,
Did you add the code in the Enfold > General Styling > Quick CSS field? Please provide the login details in the private field so that we can test the modifications.
Best regards,
IsmaelHi,
Thank you for the info.
We are not yet sure why the < br > tags were added to the av_buttonrow element, but we managed to remove them by manually editing the shortcodes. We enabled the builder’s debug mode.
— https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode
Best regards,
IsmaelMarch 11, 2025 at 2:44 am in reply to: Mega menu not showing fully on smaller screens and on ipads #1479051Hey rgupta2019,
Thank you for the inquiry.
You can add this css code to apply a minimum width to the mega menu container:
#menu-item-439 .avia_mega_div.three.units { min-width: 300px; }
Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css.
Best regards,
IsmaelMarch 11, 2025 at 2:38 am in reply to: WooCommerce hover over image changes to first gallery image #1479050Hey!
Thank you for the update.
Please note that the modification from the previous thread is for the default editor and the main/featured product image. It’s not going to work when the Advance Layout Builder (ALB) is active. This is still possible with the ALB, but you’ll have to use the Image element. Go to the Advanced > Animation panel, then set the Image Hover Effect settings to Fade to another image.
Let us know if you need additional info.
Cheers!
IsmaelHey Jevgeni,
Thank you for the inquiry.
If you don’t have access to the previous account that was used to purchase the theme, then your only option in this case is to create another account on Themeforest and purchase another license. You’ll then be able to register another account here in the forum using the purchase code and generate a private token. For more info on generating a private token, please check this documentation.
— https://kriesi.at/documentation/enfold/theme-registration/
Let us know if you need more info.
Best regards,
IsmaelHi,
Great! Glad to know that this has been clarified. Let us know if you have more questions. Have a nice day.
Best regards,
IsmaelHi,
Did you add this code in the functions.php file?
add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
If you haven’t, please add the code or provide the login details in the private field so we can check the site further. Make sure the Appearance > Theme File Editor is accessible.
Best regards,
IsmaelMarch 10, 2025 at 7:16 am in reply to: Enfold causing website to max out CPU, physical memory and I/O #1478996Hi,
We’ll need the FTP details to make changes to the theme files and revert them if necessary. Please provide the information in the private field.
Best regards,
IsmaelHi,
No problem! Please don’t hesitate to open another thread if you have more questions. Have a nice day.
Best regards,
IsmaelMarch 10, 2025 at 7:05 am in reply to: Single Product Slider and/or Product Grid Plugin Additions #1478994Hi,
Try to include this css rule inside the media query (max-width: 479px) to adjust the width of the items in the product slider:
.responsive #top #main .avia-product-slider-container .products .product { margin: 0 0 20px 0; width: 100%; } .responsive #top #main .av-19u5brg-c8bf1da9222c2acf3c8412eb09911916 .products .product { margin: 0 1% 1% 0; width: 49%; }
This should maintain the layout of the items in the “Our Best Selling Products” section.
Best regards,
IsmaelHi,
Apologies for the confusion. Unfortunately, Google Consent V2 has not yet been implemented in the theme. You may need to use a plugin or manually install third-party scripts for now. We haven’t tested the following plugins, but you can give them a try:
— https://wordpress.org/plugins/cookie-information-consent-solution/
— https://wordpress.org/plugins/cookie-law-info/
— https://wordpress.org/plugins/complianz-gdpr/Best regards,
IsmaelHi,
Thank you for the info.
You have a filter in the functions.php file with the logo URL still pointing to the staging site.
/* Use alternate logo on mobile view */ add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(wp_is_mobile()) { $logo = "https://xxx.net.au/wp-content/uploads/xxx/02/xxxxx.png"; } return $logo; }
We updated the logo URL.
Best regards,
IsmaelMarch 10, 2025 at 6:45 am in reply to: Enfold is somehow overriding Essential Grid’s lightbox #1478989Hey James,
Thank you for the inquiry.
The Enfold > Theme Options > Page Transitions setting seems to conflict with the lightbox feature. Lightbox works without issue when the option is disabled. You may need to keep this option disabled when using the Essential Grid plugin.
Best regards,
IsmaelMarch 10, 2025 at 6:30 am in reply to: Enfold causing website to max out CPU, physical memory and I/O #1478988Hi,
Thank you for the info.
We can see the same report when we run the profiler again. Could you please post the FTP details in the private field so we can test and debug the issue further? It would be even better if you could clone the site to a staging environment so that we can investigate without affecting the live site.
Best regards,
IsmaelHey slikslok,
Thank you for the inquiry.
You need to override the old version with 7.0 — deleting the old version and renaming the latest one should work. To be safe, please make sure to create a site backup or restore point before proceeding.
Best regards,
IsmaelHey purmar2,
Thank you for the inquiry.
Where can we check the issue? Please provide the site URL in the private field and include links to the affected pages. One of your options is to do a database query to remove all line breaks in the post content.
— https://pastebin.com/Pv9fBJS4
IMPORTANT: Please make sure to create a site backup or restore point before proceeding.
Best regards,
Ismael -
AuthorPosts