Forum Replies Created
-
AuthorPosts
-
Hi,
Thank you for the update.
You can use the avf_font_display filter to change the font-display value from auto to swap.
add_filter('avf_font_display', function($swap) { return 'swap'; }, 10, 1);// https://web.dev/font-display/?utm_source=lighthouse&utm_medium=unknown
This ensures that the text are still visible even if the font file(s) are not loaded yet.
Best regards,
IsmaelHey MrPoBoi,
Thank you for the inquiry.
You can add this snippet in the functions.php file to remove the theme’s pagination and bring the default one back in the product template.
add_action('after_setup_theme', function() { remove_action( 'woocommerce_after_shop_loop', 'avia_woocommerce_after_shop_loop', 10); add_action( 'woocommerce_pagination', 'woocommerce_pagination', 10 ); }, 10);Best regards,
IsmaelMay 8, 2020 at 2:19 pm in reply to: Google Search Console 403 error on directory wp-content/themes/enfold/framework #1211040Hi,
It should work just fine. The directive Options All -Indexes just disables the viewing of the directory or turn off the mod_autoindex module — the module that automatically generates the directory.
// https://httpd.apache.org/docs/2.4/en/mod/mod_autoindex.html
Best regards,
IsmaelHi,
Thank you for the update.
Looks like the controls attribute is missing from the array. Please try to edit the enfold\framework\php\function-set-avia-frontend.php file and look for this code around line 746:
$controls = $attributes['controls'] == 1 ? 'controls' : '';Replace it with:
$controls = array_key_exists('controls', $attributes) ? 'controls' : '';Also, please note that autoplay may not work if the video is not muted due to a browser policy.
Best regards,
IsmaelHi,
You should be able to transfer the content to another page by pasting the shortcodes in the debug mode field. Can we access the new site? Did you add third party content or script in the page?
Have you tried exporting/importing the posts or pages from the Tools panel?
Best regards,
IsmaelHi,
We’ll forward the request to the channel for consideration. We can probably add another input field in the slider editor containing the transitionSpeed value.
Best regards,
IsmaelHi,
Thank you for the update.
Are you trying to import the templates previously?
Did you enable the error logs? The errors would have been reported in the log when the site crashed. If debugging is not enabled yet, please enable it now, then go back to us when the site crash again. Post the WP and FTP details in the private field so that we can check it thoroughly.
And for the mean time try to enable the Classic Editor or disable the block editor. You can do it in the Theme Options > Select Your Editor settings, or use a plugin called Classic Editor.
Best regards,
IsmaelMay 6, 2020 at 1:32 pm in reply to: Change the page with Mansory-Gallery does not reload properly #1210334Hey gilleskom,
Thank you for the inquiry.
The pagination doesn’t have an anchor by default, so the page will not automatically scroll to the position of the gallery when you go to the next or previous pages. However, we can use a script to change that behavior or alter the URL manually. Please check the following thread.
// https://kriesi.at/support/topic/anchor-blog-pagination-to-same-page-location/#post-805218
Best regards,
IsmaelHey Wdytam,
Thank you for the inquiry.
We haven’t really used that plugin before, so we might not be able to assist you with it effectively but we’ll try to help as much as possible. And please note that we don’t provide support for third party plugins as stated on our support policy. Please contact the plugin developers for additional info regarding the issue.
Can we access the site?
Best regards,
IsmaelHey Charissa West,
Sorry for the delay. Do you want the menu item Product to redirect to the home page? You should be able to edit the menu item in the Appearance > Menus panel. Make sure that the home or front page is set in the Enfold > Theme Options.
Best regards,
IsmaelHi,
Have you tried muting the video or disabling it sounds? Autoplay is allowed on mobile devices if the video doesn’t have any sounds on start. However, it’s not really recommended to add background videos because they can degrade the performance of the page. You’re probably better off with the fall back image or just add an actual video element as suggested above.
Best regards,
IsmaelMay 6, 2020 at 8:31 am in reply to: Recaptacha JS files to load only on pages which use Forms #1210246Hi,
You can use the avf_load_google_recaptcha_api_prohibited filter to prevent scripts from loading on pages without contact forms.
Thank you for your patience.
Best regards,
IsmaelHi,
1.) You will have to modify the avia_ajax_search function in the functions-enfold.php file in order to add the product price in the search results.
2.) You can change the text by editing the search.php file or template.
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,
IsmaelMay 5, 2020 at 3:30 pm in reply to: Comments and add comment form disappeared after upgrading Enfold #1209995Hi,
Thank you for the update.
Try to enable the theme again and add this filter in the functions.php file to enable the comments back.
add_filter('comments_open', function() { return true; }, 9999);Related thread: https://kriesi.at/support/topic/blog-single-post-2/#post-1129964
Best regards,
IsmaelHi,
Thank you for the update.
i do not know of any shipping rules setup in pay pal account
You can ask the Paypal support team to confirm this information. Unfortunately, we are not that familiar with the paypal plugin or integration, so additional info from the plugin developers will help.
Best regards,
IsmaelHey edgold,
Thank you for the inquiry.
You can use this filter to adjust the meta tag in the archive or category pages.
if(!function_exists('avia_archive_set_follow')) { function avia_archive_set_follow($meta) { if( is_product_category() || is_shop() || is_archive() ) { $meta = '<meta name="robots" content="index, follow" />' . "\n"; } return $meta; } add_filter('avf_set_follow','avia_archive_set_follow', 10, 1); }Best regards,
IsmaelHi,
Thank you for the update.
You should create a new folder in the child theme directory and name it “shortcodes”, then create a copy of the section.php file inside. You don’t need to replicate the actual path of the shortcode in the parent theme.
Best regards,
IsmaelHey Shiny2013,
Thank you for the inquiry.
Could you provide a screencast of the issue? The video doesn’t revert back to the first frame when we tested it on Firefox Dev Windows 10. The slider automatically switches to the next slide when the video is finished.
Best regards,
IsmaelHi,
Sorry for the delay. Looks like you’ve managed to arrange the icons and text to the preferred order using columns. Please let us know if you need anything else.
Best regards,
IsmaelHi,
Thank you for the inquiry.
Did you change the order of the posts using the plugin? The plugin probably altered the default posts query, so you don’t get the next or previous adjacent post in the navigation as you would by default without the plugin.
You can try this filter to revert the posts sorting back to default.
Just replace post_title with post_date.
Best regards,
IsmaelHey topnetat,
Thank you for the inquiry.
The images in the site are actually lazy loaded as you can see in the following markup. The img tag contains the “lazyloaded” class attribute.
<img class="avia_image lazyloaded" src="https://site.com/wp-content/uploads/2020/03/Warren_Buffett_PNG-removebg-preview.png" alt="Warren Buffett" title="Warren Buffet Value Investing" itemprop="thumbnailUrl" data-lazy-src="https://site.com/wp-content/uploads/2020/03/Warren_Buffett_PNG-removebg-preview.png" data-was-processed="true" width="470" height="532">According to the page speed insight tool, the page contains too many elements — 1895 in total. You should consider trimming them down a bit or move the other content in a different page.
You should also increase the cache expiry or lifetime of the resources.
// https://web.dev/uses-long-cache-ttl?utm_source=lighthouse&utm_medium=unknown
Best regards,
IsmaelMay 5, 2020 at 2:27 pm in reply to: Video background in color section when set to not loop reverts to first frame #1209970Hi,
We can’t reproduce the issue on our end. The video pauses after 8 seconds but it doesn’t revert back to the first frame. Please check the screenshot below showing the current video time and when it actually stops.
Screenshot: https://imgur.com/a/8tTd02Z
Best regards,
IsmaelHi,
Thank you for the update.
Where did you add the script for the fliphtml reader? We can’t find it anywhere in the page. The page only contains the table markup with images in it, but not the script.
Best regards,
IsmaelHey Roberta,
Thank you for the inquiry.
How did you apply the new template to the page? Please note that when the Advance Layout Builder is active, the page is going to be displayed using the template-builder.php instead of the page.php file.
Best regards,
IsmaelHi,
Sorry for the delay. Did you add any script tags in the page? Please try to remove the script tag and use the wp_enqueue_script function instead to register the script properly. Also, make sure that all tags that were added in the page are closed properly.
// https://developer.wordpress.org/reference/functions/wp_enqueue_script/
Best regards,
IsmaelHi,
Sorry for the delay. You can try this snippet in the functions.php file to adjust how the product thumbnails are cropped.
add_filter('woocommerce_get_image_size_thumbnail', function($size) { $size = array ( 'width' => 9999, 'height' => 9999, 'crop' => array( 'center', 'top'), ); return $size; },10, 1);Use this plugin to regenerate the thumbnails.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelHey Mark,
Thank you for the inquiry.
The shop page in the site is displaying properly now. Did you figure it out? (see private field)
Best regards,
IsmaelHey amepro,
Thank you for the inquiry.
The next and previous arrows or navigation will contain the adjacent posts sorted by date they were published. One solution then is to adjust the published date of the posts manually.
Best regards,
IsmaelHi,
Because when I download the WooCommerce plugin, none of the pages cart, shop ect… with the WooCommerce code blocks, show up, that it normally would do.
Did you specify which pages to use for the shop page? Please check this documentation.
// https://docs.woocommerce.com/document/woocommerce-pages/
You should also add these shortcodes in the specified pages.
// https://docs.woocommerce.com/document/woocommerce-shortcodes/
Best regards,
IsmaelHi,
We adjusted the snippet a bit. Please add it again, then regenerate the images.
add_filter('avf_modify_thumb_size', 'my_modified_thumb_size', 10, 1 ); function my_modified_thumb_size( $img_size ) { $img_size['entry_with_sidebar']['crop'] = false; $img_size['entry_without_sidebar']['crop'] = false; return $img_size; }You can use this plugin to regenerate the thumbnails.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
Ismael -
AuthorPosts
