Forum Replies Created
-
AuthorPosts
-
August 19, 2021 at 5:25 am in reply to: 4.8.2 onwards Woocommerce main shop image is being lazy loaded #1317418
Hi,
The same code works fine on our end. It removes the loading attribute of the single product featured or main image. Did you copy it directly from the forum, and not from your email?
What is your workaround? Mind it sharing it here so that we could implement it to the theme.
Best regards,
IsmaelAugust 19, 2021 at 5:23 am in reply to: Enfold contact form includes the URL of the page it is sent from #1317416Hi,
You will have to append the links manually to the $message.
$message .= "<a href='https://facebook.com?utm_source=Facebook&utm_medium=Sepet1&utm_campaign=tr-yeni">Facebook></a>";
If you need more assistance, please feel free to open another thread. We will close this one for now.
Best regards,
IsmaelHey MediaMix1,
Thank you for the inquiry.
Are you embedding a script or input tag in a code block element? Adding these kind of tags could break the page. You might have to create a custom shortcode for the embed script so that you do not have to add the tags directly in the builder.
// https://codex.wordpress.org/Shortcode_API
Example of a custom shortcode from the documentation.
// [bartag foo="foo-value"] function bartag_func( $atts ) { $a = shortcode_atts( array( 'foo' => 'something', 'bar' => 'something else', ), $atts ); return "foo = {$a['foo']}"; } add_shortcode( 'bartag', 'bartag_func' );
The custom shortcode can be used like this.
[bartag]
Best regards,
IsmaelHi,
The site is currently on maintenance mode. Let us know when it is back up again so that we can check the page settings.
Best regards,
IsmaelHey galgro,
Thank you for the inquiry.
Did you adjust the language locale in this line?
if ($lang == 'fr_FR')
If you are trying to change the logo in the English version for example, the locale should be “en_US”.
function av_change_logo($logo){ $lang = pll_current_language('locale'); if ($lang == 'en_US') { $logo = "LOGO URL FOR ENGLISH LANGUAGE HERE"; } return $logo; } add_filter('avf_logo','av_change_logo');
Best regards,
IsmaelHi,
Are you trying to show an accordion in the search results page? That is not possible, unless search engines actually support the feature. Only the elements that are listed in this article can be shown in the search results page.
// https://yoast.com/elements-of-the-google-search-result-page/
The accordion under the “People also ask” section is automatically generated by Google. You cannot directly control it.
Best regards,
IsmaelHi,
You can disable the search icon by toggling the Append search icon to main menu option in the Enfold > Main Menu > General panel. The toggle is located below the Separator between menu items settings.
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,
IsmaelAugust 18, 2021 at 7:39 am in reply to: 4.8.2 onwards Woocommerce main shop image is being lazy loaded #1317288Hi Jason,
Thank you for following up.
The filter above actually removes the loading attribute of the product’s main image (shop_single), so it should be a viable solution, temporarily. Did you try it?
Best regards,
IsmaelHey simonac,
Thank you for the inquiry.
Make sure that the embedded video is using “https” instead of “http” — check the video URL. It is not loading because of the following error.
Mixed Content: The page at 'https://site.com/akr/' was loaded over HTTPS, but requested an insecure frame 'http://site.com/wp-content/uploads/2017/03/Diesel%20gas%20Cylinder.mp4?iframe=true'. This request has been blocked; the content must be served over HTTPS.
Best regards,
IsmaelAugust 18, 2021 at 7:31 am in reply to: Filter the color_sets array for custom color sections #1317284Hey Patrick,
Thank you for the info.
We have tagged one of our developers to check the issue. We will also forward the thread to our channel for further considerations. Please kindly wait for the reply.
Best regards,
IsmaelAugust 18, 2021 at 7:20 am in reply to: Which scripts are there for loading the mega menu? Caching / Performance #1317282Hey S.,
Thank you for the inquiry.
You can find the mega menu script in the themes/enfold/js/avia-snippet-megamenu.js file. It is registered in the functions.php file around line 486, handle is “avia-megamenu”.
//mega menu inclusion (only necessary with sub menu items) $condition = ( avia_get_submenu_count('avia') > 0 ); avia_enqueue_script_conditionally( $condition , 'avia-megamenu', $template_url . '/js/avia-snippet-megamenu.js', array( 'avia-default' ), $vn, true );
Best regards,
IsmaelAugust 18, 2021 at 7:15 am in reply to: Issues with Avia Layout Architect and PDF Print Plugins (shortcode rendering) #1317278Hi,
Alright. Let us know when the author replies. We will keep the thread open.
Thank you for your patience.
Best regards,
IsmaelHi,
Thank you for the update.
The only box that the theme actually generates in that list is the Layout box, so that is the only box that we can toggle for now. For the other boxes such as the Open Graph and Product Description, you will have to contact the plugin authors.
We can use the following filter in the functions.php file to control the visibility of the Layout box based on the current user.
/* control builder boxes visibility */ function add_builder_to_posttype($metabox) { $user = wp_get_current_user(); foreach($metabox as &$meta) { if($meta['id'] == 'layout' && in_array( 'author', (array) $user->roles )) { unset($meta['page']["product"]); } } return $metabox; } add_filter('avf_builder_boxes', 'add_builder_to_posttype');
The filter above disables the Layout box when the current user is an “author”.
if($meta['id'] == 'layout' && in_array( 'author', (array) $user->roles ))
You can also use the current_user_can function to check for the capability of the current user and go from there.
// https://developer.wordpress.org/reference/functions/current_user_can/
Best regards,
IsmaelHey Lukasz,
Thank you for the inquiries.
1.) We do not really see any difference on how the masonry items behave on both screens (1333px and 1920px) when loading more posts or items. Would you mind providing a screenshot or a screencast?
2.) Yes, you should be able to edit the logo style either by using a filter or by editing the template files.
3.) Yes, the vertical or the sidebar menu supports submenus.
Best regards,
IsmaelHi,
No problem. Glad to know that it is now working. Please feel free to open another thread if you need anything else.
Have a nice day.
Best regards,
IsmaelHi,
Thank you for the update.
We cannot seem to reproduce the issue on our end. The columns responds and resize correctly when we resize the viewport or browser screen. What is the size or width of the screen in the screenshot above?
Have you tried creating more css media queries to adjust the width of the columns on smaller screens?
Example:
@media only screen and (max-width: 989px) { #footer .av_one_fourth { margin-left: 6%; width: 20.5%; } }
Best regards,
IsmaelHi,
Thank you for the update.
The avf_header_setting_filter filter should help if you want to enable the transparent header option for posts without editing them manually. Usage example can be found in the following threads.
// https://kriesi.at/support/topic/transparent-header-on-woocommerce-product-page/#post-1224884
// https://kriesi.at/support/topic/change-theme-options-on-a-per-page-basis/#post-1286821
// https://kriesi.at/support/topic/header-visibility-and-transparency/#post-1227925You have to adjust the header_transparency and the header_class parameters.
$header['header_transparency'] = 'header_transparency'; $header['header_class'] .= " av_header_transparency";
But if you want to add new sections or elements under the header, then you would have to modify the template files directly, or use hooks such as ava_after_main_container or ava_after_main_title.
Best regards,
IsmaelHi,
Thank you for the update.
You can use this code in the Quick CSS field to remove the top margin of the first row on mobile view.
@media only screen and (max-width: 767px) { .home #av_section_1 .flex_column_table { margin-top: 0 !important; } }
Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code.
Best regards,
IsmaelAugust 18, 2021 at 6:20 am in reply to: icons downloaded from flaticon (as icon fonts) not showing up on Safari #1317259Hi,
Thank you for the update.
The custom icons in the tab section titles are now displaying correctly on Chrome. How did you fix it?
Screenshot on Chrome: https://imgur.com/72EFG5n
Best regards,
IsmaelHi Chris,
Yeah, that is odd. But I am glad that it is finally working. Please let us know in another thread if you need anything else. We will close this one for now.
Have a nice day.
Best regards,
IsmaelHi,
The TEC template is quite different from the MEC template, so we cannot be sure. As suggested above, you may need to override the existing MEC templates or create your own template files. Unfortunately, this kind of modification is beyond the scope of support.
Best regards,
IsmaelHey Bertrand,
Thank you for the inquiry.
The filter above should have worked. Please post the login details in the private field so that we could check the issue properly.
Best regards,
IsmaelHi,
Thank you for the info.
It is not displaying correctly because the blog.css file is not being loaded in the page. Did you set the Enfold > Performance > Disabling of template builder elements to the second option?
Try to add this code in the Quick CSS field to adjust the style of social share tooltip.
.avia-related-tooltip.avia-tt { position: absolute; z-index: 9999999; padding: 0; width: 200px; border-radius: 2px; box-shadow: 0px 3px 13px 0px rgb(0 0 0 / 10%); border-width: 1px; border-style: solid; padding: 15px; margin-top: -10px; }
Best regards,
IsmaelHey Piamq,
Thank you for the inquiry.
The video actually has no audio. Are you sure that it has audio? We tried to play it directly in the browser and it is still muted. (see private field)
Best regards,
IsmaelHey Hejanni,
Thank you for the inquiry.
Try to replace it with the following css code to adjust the width of the columns and decrease the space between them.
.avia-content-slider-inner .av_one_fourth { margin-left: 2%; width: 23%; }
Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code.
Best regards,
IsmaelAugust 17, 2021 at 6:29 am in reply to: Remove border on Fullwidth Submenu and remove gaps between menu items. #1317081Hey Thedogscreative,
Thank you for the inquiry.
We may need to inspect the site or the menu items in order to provide the appropriate changes or modifications. Please post the site URL in the private field.
Best regards,
IsmaelAugust 17, 2021 at 6:21 am in reply to: Non intuitive "solution" to elements not showing that is a bit annoying #1317078Hi,
Thank you for the inquiry.
Did you create a staging site before changing the settings? You should create a site backup so that you can restore the site to its previous state if necessary.
When you see an element that is not working after an update, all you need to do is purge the cache and toggle minification/compression (Enfold > Performance if you are using it), or disable them temporarily. You do not have to update the page or change any settings. This step alone should be enough to reload the updated scripts and stylesheets. If you are using a plugin such as Autoptimize or BWP Minify and enabled HTML compression, make sure to disable that option too.
If the element is still not working after the steps above, then there might be an issue with the actual shortcodes such as missing element ID, which has been introduced in the later versions of the theme. If that is the case, try to set the builder to debug mode and enable the shortcode parser to repair the shortcodes.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#shortcode-parser
Best regards,
IsmaelHey mnoack1,
Thank you for the inquiry.
Where did you add the modifications? Please post the complete modifications that you did for the header on pastebin.com so that we could test it properly on our installation.
Best regards,
IsmaelHi,
Thank you for the inquiry.
The portfolio loads fine on browser device emulations (iPhone, iPad, Samsung, Pixel, Surface etc). It is not an actual device but the emulation is getting better at mimicking actual mobile device behavior. However, we noticed that the page takes quite a while to load, probably because there are a lot of portfolio items in a single page, which means that the browser has to request and load a lot of images, which might be the reason why it does not load at all on some mobile devices.
You might want to consider enabling the pagination or moving some of the portfolio items in their own category pages.
Screenshot: https://imgur.com/TDtSP7j
Best regards,
Ismael -
AuthorPosts