Forum Replies Created
-
AuthorPosts
-
Hi,
@thinkjarvis: We are not really sure about that, but according to the web vitals’ documentation, providing width and height attributes to the images should be enough to decrease the impact cause by any lazy loading scripts to the CLS score. It is also mentioned in the documentation that any images that are above the fold should not be lazy loaded.
Best regards,
IsmaelHi,
@swarez: We checked the performance of the above page in the pagespeed insight tool and according to it, the CLS score in the past 28 days is already 0.1, which is very high, given that lazy loading is probably still enabled during those periods. The lab data however, shows that the CLS score is 0.24, but this might be due to the server location against ours, and unless the site is on a CDN, the distance between the server and the client could really affect the site performance or how fast it displays on our browser. But we will look into using placeholders for images while the page is still loading.
Score: https://imgur.com/0VERHZq
Best regards,
IsmaelHi,
No problem. Glad to know that it is working.
Have a nice day. :)
Best regards,
IsmaelFebruary 26, 2021 at 4:07 pm in reply to: Header Scrolled – Slide Down Background instead of fade #1283881Hi,
Thank you for the update.
It is not yet working because the quotation marks in this part of the code have been converted to something else, and so the container block that is supposed to transition up and down is not rendered.
content: "
Please replace it with this.
content: "";
Best regards,
IsmaelFebruary 26, 2021 at 4:04 pm in reply to: Portfolio Grid icon overlay always visible rather than just on hover #1283879Hi,
Thank you for the update.
The css code above is working properly on our installation. Would you mind providing a screenshot of the issue, and a direct link to the page containing the overlay? We might be talking about two different things here, so providing a screenshot and/or creating a test page should help clear things out.
Best regards,
IsmaelHi,
@joax: The icons display fine in those sites. Have you figured out the issue?Best regards,
IsmaelHi,
No worries. Glad we could be of help. Please feel free to open another thread should you need anything else.
Have a nice day.
Best regards,
IsmaelFebruary 26, 2021 at 3:56 pm in reply to: Blog Post Grid Layout – Title, Author, Date display #1283874Hi,
If you would like the custom field to display between the title and the date, please use this code instead.
$outlet = get_post_meta($the_id, 'outlet', true); if(!empty($outlet)) { $outlet_output = '<span class="outlets minor-meta">'. __( 'Outlet:','avia_framework' ) . ' '; $outlet_output .= $outlet; $outlet_output .= '</span><span class="text-sep text-sep-cat">/</span>'; } $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$outlet_output . $content}</div>"; $items .= "<div class='av-masonry-entry-outlet'>{$outlet_output}</div>";
Thank you for your patience.
Best regards,
IsmaelHi,
The code that we suggested to remove is in the functions.php file, along with the snippet that we recommended previously. But since you already restored the site using a backup, please use this snippet in the functions.php file instead.
function avf_script_loader_tag_mod( $tag, $handle, $source ) { if ( "layerslider" === $handle || "layerslider-utils" === $handle ) { $tag = str_replace( "data-cfasync=\"false\"", '', $tag ); } return $tag; } add_filter( 'script_loader_tag', 'avf_script_loader_tag_mod', 999, 3); add_action("after_setup_theme", function() { remove_filter('script_loader_tag', 'layerslider_script_attributes', 10, 3); }, 999);
Best regards,
IsmaelFebruary 26, 2021 at 3:39 pm in reply to: Error "Call to undefined function av_icon_string()" #1283871Hi,
Thank you for the inquiry.
The av_icon_string function is defined in the enfold\config-templatebuilder\avia-template-builder\php\font-manager.class.php and is loaded on WP init, so this issue should not be occurring. Are you using the social media icons in any unique way, maybe adding it in a template directly or something like it?
Best regards,
IsmaelFebruary 26, 2021 at 3:23 pm in reply to: fonts don't load correctly on first operning of website #1283867Hi,
You’re welcome! Please do not hesitate to open another thread if you need anything else.
Have a nice day.
Best regards,
IsmaelFebruary 26, 2021 at 3:22 pm in reply to: woocommerce 3.4 – terms and conditions dosen't open in checkout!! #1283866Hi,
No problem. Glad we could help. We will close this thread now, but please feel free to open another if you need anything else.
Have a nice day.
Best regards,
IsmaelHi,
Thank you for the update.
Ah yes, there is a line there that could cause the page to scroll after opening the content. Please try to remove or comment out this line.
if(win.scrollTop() > el_offset) { $('html:not(:animated),body:not(:animated)').scrollTop(scoll_target); }
Best regards,
IsmaelHi,
Thank you for the update.
The class name is being added in the logo markup.
<span class="logo"><a href="http://wordpress.p577894.webspaceconfig.de/"><img src="http://wordpress.p577894.webspaceconfig.de/wp-content/uploads/2021/01/ae-logo-2.svg" alt="p577894" title="" class="darkmode-ignore" width="300" height="100"></a></span>
It is possible that the plugin cannot invert images dynamically, and might be the reason why the logo stays the same when changing theme.
Best regards,
IsmaelHi,
Sorry about that. The latest version 4.8 is not available yet, which is probably why GA4 is not working in your installation. Please look for the avia_get_tracking_code and the avia_print_tracking_code functions inside the functions-enfold.php file, remove them and replace them with the following code instead.
// https://pastebin.com/KBC9jrUJ
Best regards,
IsmaelFebruary 26, 2021 at 2:59 pm in reply to: How to add copyright info to all images on website? #1283858Hi,
Instead of adding a copyright text, you could automatically apply a watermark to the images after uploading them to the media library using this plugin.
// https://wordpress.org/plugins/easy-watermark/
Best regards,
IsmaelFebruary 26, 2021 at 2:52 pm in reply to: preset a portfolio to have on default a custom widget area shown. #1283856Hi,
Is the block editor active in the installation where you are testing this? If yes, we might have to delay the execution of the script a bit to make sure that the ALB switch button already exists. Please try this script.
function trigger_alb_on_load(){ ?> <script> (function($){ $(document).ready(function(){ setTimeout(function() { var container = $('.edit-post-header__settings').first(); var btn = container.find('.avia-builder-button').first(); btn.trigger('click'); }, 500); }); })(jQuery); </script> <?php } add_action('admin_head-post-new.php', 'trigger_alb_on_load');
Best regards,
IsmaelHi,
We edited the css code and the script above a bit to hide the text and toggle it when necessary. Please try it again.
Best regards,
IsmaelFebruary 26, 2021 at 2:18 pm in reply to: Enfold Gaming Demo Menu functionality on Sub Menu #1283846Hi,
Thank you for the update.
We can use this script in the functions.php file to add a unique class name (current-menu-item) to the active item or the item that is recently clicked.
// a custom script // add current-menu-item class to active item function ava_custom_script_mod() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', ' (function($) { $("#top .av-subnav-menu > li").on("click", function() { var item = $(this); var parent = $(this).parent("#menu-sub-menu"); if(item.is(".current-menu-item")) return; parent.find("li").removeClass("current-menu-item"); item.addClass("current-menu-item"); }); })(jQuery); '); } } add_action( 'wp_enqueue_scripts', 'ava_custom_script_mod', 9999);
Then use the same css code above to change the color of the font.
#top .av-subnav-menu > li.current-menu-item a { color: red !important; }
Best regards,
IsmaelHi,
Thank you for the update.
The changes are probably not taking effect because file compression is enabled, so disabling the Enfold > Performance > File Compression settings temporarily should help. Unfortunately, the duration of the slideUp and slideDown function does not depend on the length of the content by default and is only based on an absolute time defined in milliseconds.
Best regards,
IsmaelHi,
Thank you for following up.
It works fine when we disable the quantity button completely, and use the default buttons from the plugin. Would you consider disabling the quantity button modification? If yes, just remove all instances of the avia_apply_quant_btn(); function inside the woocommerce-mod.js file.
Best regards,
IsmaelHi,
For the pagination issue, please update the files listed in the following link.
This should fix the pagination for the portfolio category pages.
Related thread: https://kriesi.at/support/topic/the-grid-with-products-does-not-work-pagination/#post-1254673
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
IsmaelHi,
Thank you for the update.
Creating a box with solid or opaque background should help improve the contrast between the background and the caption. Please try this css code.
#top div .caption_center .slideshow_caption { text-align: center; background: rgba(0,0,0,0.5); width: 50%; margin: 0 auto; float: none; left: 50%; transform: translate(-50%, -50%); height: 50%; top: 50%; }
If the tool continues to complain about it, try to increase the transparency of the background from 0.5 to 0.7 or higher.
Best regards,
IsmaelHi,
Thank you for following up.
Did you purge the cache and disable the Enfold > Performance > File Compression settings after adding the css code? The suggested css code works properly in our own installation, it corrects the indentation based on the depth or level of the dragged menu item.
Best regards,
IsmaelFebruary 25, 2021 at 4:59 pm in reply to: Header Scrolled – Slide Down Background instead of fade #1283716Hi,
Thank you for the inquiry.
That is a nice header effect. We will not be able to replicate it exactly, but this css code should get you started.
.header_color .header_bg { background-color: transparent; } #header_main { border: 0; } .av_header_transparency #header_main::before { top: -99px; transition: all 0.3s ease-in-out; } #header_main::before { content: ""; width: 100%; height: 90px; display: block; background: #ffffff; position: absolute; z-index: 0; top: 0; }
Make sure that the page has a transparent header and that it is sticky.
Best regards,
IsmaelHi,
Alright. Hopefully, we would be able to reproduce the issue on our end. We will let you know once we come up of a better fix.
We will close this thread for now. Have a nice day.
Best regards,
IsmaelFebruary 25, 2021 at 4:40 pm in reply to: woocommerce 3.4 – terms and conditions dosen't open in checkout!! #1283707Hi,
@joax: You can use the following script in the functions.php file to set the terms and conditions link to actually open the page instead of rendering the content in the same container.// a custom script function ava_custom_script_mod() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', ' (function($) { $("#top .woocommerce-terms-and-conditions-link").on("click", function(e) { e.preventDefault(); window.location.href = $(this).attr("href"); }); })(jQuery); '); } } add_action( 'wp_enqueue_scripts', 'ava_custom_script_mod', 9999);
Best regards,
IsmaelHi,
Thank you for the inquiry.
We were able to reproduce the issue on Chrome Window 10, but we are not really sure what is causing it yet. We might be able to fix the issue by editing the themes\enfold\config-templatebuilder\avia-shortcodes\tabs\tabs.js file and remove this code around line 161.
window.scrollTo(0, container.offset().top - 70);
Disable the file compression temporarily and purge the cache afterwards.
Best regards,
IsmaelHey pixel-hustler,
Thank you for the inquiry.
According to the gtmetrix tool, the videos and the images in the home page are quite heavy causing huge network payloads. You may need to decrease the quality of the video and compress or optimize the images. Please check the following articles to learn more on how the theme could be optimized further.
// https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow
// https://kriesi.at/archives/4-key-wordpress-image-optimization-tipsBest regards,
IsmaelHi!
I did a test, the default slides of the Layer slider plugin seem to work, but not the one I created customized.
Sorry about that. What happens when this part of the code is removed?
add_action("wp_enqueue_scripts", function() { wp_deregister_script('layerslider' ); wp_deregister_script('layerslider-utils' ); wp_register_script('layerslider', LS_ROOT_URL.'/static/layerslider/js/layerslider.kreaturamedia.jquery.js', array('jquery'), LS_PLUGIN_VERSION, true ); wp_register_script('layerslider-utils', LS_ROOT_URL.'/static/layerslider/js/layerslider.utils.js', array('layerslider'), LS_PLUGIN_VERSION, true ); }, 999);
Removing that part should also remove the errors and the script_loader_tag filter above should be enough to remove the data attribute.
Best regards,
Ismael -
AuthorPosts