Forum Replies Created
-
AuthorPosts
-
Hi,
Thank you for your patience.
Would you like the Graham Capital menu item to open the first AJAX portfolio item in the page? If this is what you need, please try to use this snippet in the functions.php file.
// trigger portfolio ajax on menu click function ava_script_events_container() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', '(function($) { (function($) { $(document).ready(function() { // when the menu item with the ID 744 is clicked... $("#menu-item-744 a").on("click", function(event) { // prevent the default action.. event.preventDefault(); // , then dispatch a click event to the portfolio item with the ID 44 to open it $(".grid-entry.post-entry-44 a").trigger("click"); }); }); })(jQuery); '); } } add_action( 'wp_enqueue_scripts', 'ava_script_events_container', 9999);As explained in the script comments, this will open the portfolio entry with the ID 44 when the menu item Graham Capital or the menu item with the ID 744 is clicked.
Best regards,
IsmaelHi,
Thank you for the update.
We cannot find the custom WPML menu beside the burger menu. How did you add it? Unfortunately, you will not be able to add another menu beside the default icon menu with just css or without editing the template file as we explained in the previous thread.
// https://kriesi.at/support/topic/hamburger-menu-next-to-default-menu-in-enfold/#post-1179337
Best regards,
IsmaelHi,
We can add a conditional function to the template file so that it only sets the palette to alternate_color when viewing the checkout page. Try to replace the snippet with this.
<?php $palette = is_page(array(18)) ? 'alternate_color' : 'main_color'; ?> <div class='container_wrap container_wrap_first <?php echo $palette . ' '; avia_layout_class( 'main' ); ?>'>Adjust the value inside the conditional function is_page to the actual ID of the checkout page.
Best regards,
IsmaelDecember 9, 2020 at 12:38 pm in reply to: Google Maps Shortcode issue in a non-GDPR country #1265972Hi,
Thank you for the update.
Have you tried to disable the cache and minification plugins? The header and the rest of the scripts are currently minified and it is possible that the site is still using the outdated version of the scripts.
Please post the login details in the private field so that we could check the site further. Make sure that the Appearance > Editor panel is accessible so that we could edit the files when necessary.
Best regards,
IsmaelHi,
Did you change the password for the user account above? It is not working anymore. Please post the updated login info or create another account so that we could check the site further.
Best regards,
IsmaelDecember 9, 2020 at 12:22 pm in reply to: Background Image Not Showing In Color Section When Code Block Is Present #1265966Hi,
Thank you for the info.
It display back to how it should on Chrome once the browser is resized. Please try to add this snippet in the functions.php file to force a resize on page load.
add_action('wp_footer', 'ava_auto_resize'); function ava_auto_resize(){ ?> <script> (function($){ var int = window.setInterval(function(){ $(window).trigger('debouncedresize resize'); }, 1000); $(window).load(function () { setTimeout(function() { clearInterval(int); }, 3000); }); })(jQuery); </script> <?php }Best regards,
IsmaelDecember 9, 2020 at 8:38 am in reply to: have icon youtube or vimeo link open up in a lightbox and not a new tab #1265934Hey bobfurgo,
Thank you for the inquiry.
Try to use the other format of the Youtube URL. Example:
https://www.youtube.com/watch?v=G0k3kHtyoqcOr edit the icon element and add “lightbox” in the class attribute field.
Best regards,
IsmaelHey AlexR,
Thank you for the inquiry.
We cannot reproduce the issue on our end — the end of URL contains a hashtag or is in anchor format. Please check the screenshot below.
Screenshot: https://imgur.com/a/OTfVb88
We checked the site on Firefox Dev Windows 10. Which browser and OS are you using?
Best regards,
IsmaelDecember 9, 2020 at 8:08 am in reply to: Apple Music / Spotify / Amazon – social icons in the menu bar? #1265931Hey Akiko,
Thank you for the inquiry.
We can use the avf_social_icons_options and avf_default_icons filters in the functions.php file to add a new social icon option in the existing list and associate a custom font icon to it. Usage example can be found in the following threads.
// https://kriesi.at/support/topic/enfold-add-multiple-social-profile-icons/
// https://kriesi.at/support/topic/custom-social-media-icon-in-the-socket/This an example of the snippet.
// WIEBO - Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['weibo'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); $icons['qq'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); $icons['wechat'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); // Add new icon as an option for social icons function avia_add_custom_social_icon($icons) { $icons['Weibo'] = 'weibo'; $icons['QQ'] = 'qq'; $icons['WeChat'] = 'wechat'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);Add the snippet in the functions.php file and define the new icon after this line in the avf_social_icons_options filter.
$icons['WeChat'] = 'wechat';To associate a font icon to the new social icon, just follow the pattern in the avf_default_icons filter. This code defines the font icon that we have to use for the wechat social icon.
$icons['wechat'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');Best regards,
IsmaelHi,
Sorry for the delay. The vertical-align property will only work if the display property of the element is set to inline or table-cell. Unfortunately, setting either one of these values will break the current layout of the table.
Best regards,
IsmaelHey Josh,
Thank you for the inquiry.
Where did you get the css code? You cannot set a video file as background using css. You have to embed the video tag in the template directly and use css to adjust its size and position. Examples of these can be found in the following link.
// https://css-tricks.com/full-page-background-video-styles/
Best regards,
IsmaelDecember 9, 2020 at 7:40 am in reply to: Header image size differs in Firefox / Chrome / IE #1265927Hi,
Thank you for the update.
It looks like that because the browser has to retain the aspect ratio of the image. To make it full width or to increase the width of the alternate logo image, try to use this css code.
.responsive .logo { width: 100%; } .responsive .logo img.alternate { left: 50%; -webkit-transform: translate(-50%, 0); -ms-transform: translate(-50%, 0); transform: translate(-50%, 0); }Best regards,
IsmaelHey sastrysk,
Thank you for the inquiry.
What is not working? Have you managed to embed the custom menu to the template file? You may need to contact the plugin developer for additional assistance because they are more familiar with the plugin.
The plugin’s documentation should help.
// https://docs.themeum.com/wp-megamenu/getting-started-3/
Best regards,
IsmaelDecember 9, 2020 at 7:16 am in reply to: Google Maps (User must accept to show) does not get enabled without reloading #1265925Hey Leofiori,
Thank you for the inquiry.
It’s stated that built in enfold modules do not require a page reload after allowing cookies.
Where is this stated? When the Default Cookie Behavior is not set to the first or the second option, users will have to accept the cookies first and manually reload the page, and only then will the map display and other external scripts will work. It is also possible to set the page to refresh automatically after the consent. The Auto Reload Page option is located in the Privacy & Cookies > Cookie Handling > Advanced Options section.
Best regards,
IsmaelHi,
Are you trying to close the aam shortcode using another code block? That will probably not work, you might have to add the content test1 in the same code block wrapped inside the aam shortcode, so it should be.
codeblock:
[aam hide=”administrator”] content to hide here [/aam]OR
textblock:
[aam hide=”administrator”] content to hide here [/aam]Best regards,
IsmaelDecember 8, 2020 at 12:58 pm in reply to: Import didn't work! You might want to try reloading the page then try again #1265740Hi!
The demo import fails because of the following error but we are not yet sure what is causing it. We will let you know as soon as possible once we found a fix.
Failed to import Media “enfold_photography”: Request failed due to an error: cURL error 28: Connection timed out after 10000 milliseconds (http_request_failed)
Please try to ask your hosting provider if mod_security can be disabled temporarily.
Regards,
IsmaelDecember 8, 2020 at 12:49 pm in reply to: Import didn't work! You might want to try reloading the page then try again #1265737Hi,
We would like to apologize for the inconvenience. We tried to import the photography demo manually using the xml files but the server connection times out and the import process aborts even after setting the max_execution_time to 9999. Please ask your hosting provider if the server allows connection to the kriesi.at site where the demo files are located.
Unfortunately, we do not handle refunds here, so you will have to contact the Themeforest team if you want your payment back. But hopefully, we will be able to get this fix as soon as possible so that you could continue with the theme.
Best regards,
IsmaelHi,
Thank you for following up.
Try to replace the custom_add_to_cart_quantity_handler function and associated inithook with the following snippet.
/** * Add requires JavaScript. */ function ava_custom_add_to_cart_quantity_handler() { wc_enqueue_js( ' (function($) { // set initial value to 6 $(document).ready(function() { var add_to_cart_button = $( ".add_to_cart_button" ); add_to_cart_button.data( "quantity", 6 ); }); $( ".type-product" ).on( "click", ".quantity input", function() { return false; }); $( ".type-product" ).on( "change input", ".quantity .qty", function() { var add_to_cart_button = jQuery( this ).parents( ".product" ).find( ".add_to_cart_button" ); // For AJAX add-to-cart actions add_to_cart_button.data( "quantity", jQuery( this ).val() ); // For non-AJAX add-to-cart actions add_to_cart_button.attr( "href", "?add-to-cart=" + add_to_cart_button.attr( "data-product_id" ) + "&quantity=" + jQuery( this ).val() ); }); })(jQuery); ' ); } add_action( 'init', 'ava_custom_add_to_cart_quantity_handler' );Best regards,
IsmaelDecember 8, 2020 at 12:23 pm in reply to: Special Characters in a code block – unable to use suggested replacement #1265732Hi,
Glad to know that it is now working. Please do not hesitate to open a new thread if you need anything else. We will keep this one open for the OP.
Best regards,
IsmaelHi,
Thank you for the update.
Where can we see the site? Please post the site or page URL in the private field so that we could check the layout.
Are you familiar with css media queries? You should be able to adjust the default style on mobile view using css media queries.
// https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Best regards,
IsmaelHi,
Sorry about that. In the theme overview page on Themeforest, we do not claim that the theme is compatible with AMP, a lot of premium themes are not. Unfortunately, we do not know when will this be added to the theme. Regardless, you should still be able to optimize the site or improve the loading speed even without AMP compatibility by following a few guidelines. Please check the following article for more info about site optimization.
// https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow
// https://gtmetrix.com/wordpress-optimization-guide.htmlBest regards,
IsmaelHi,
Would you like to place the star rating below the title of the products in the shop page? The following thread might help.
The modifications there creates a shortcode for the star rating but you should be able to modify it so that the stars display right after the product title. You may need to use the woocommerce_after_shop_loop_item_title hook in order to do so.
// http://hookr.io/actions/woocommerce_after_shop_loop_item_title/
Best regards,
IsmaelHi,
is there anyway to start with audio?
This is not possible, unfortunately. As described in the article above, autoplay is only allowed if the media file has no sounds or if the current user has previously played a media file before or has passed the Media Engagement Index threshold.
For further inquiries, please do not hesitate to open a new thread.
Have a nice day.
Best regards,
IsmaelHi,
Does it mean it works for you???
Yes, it works when we set the height of the tr element or of the .woocommerce-cart-form__cart-item.cart_item container to 100%. This css does not exist when we checked the site again today.
table.shop_table .woocommerce-cart-form__cart-item.cart_item { height: 100% !important; }Please post the login details in the private field so that we could check the css modifications.
Thank you for your patience. :)
Best regards,
IsmaelHi,
Thank you for the info.
It is actually working properly on our end — the ReCAPTCHA badge is visible at the bottom right corner of the site and sending a message using the form seems to be working properly as well. Please check the screenshot below.
Screenshot: https://imgur.com/Rfd0jat
We tested the site on Firefox Dev Windows 10. Which browser are you using?
Best regards,
IsmaelHi,
Thank you for following up.
1.) Have you tried creating a completely different slider for mobile view? It is possible to hide the current slider on mobile devices or toggle its visibility on certain screen sizes, which should allow you to show a different version of the slider.
2.) Unfortunately, that option is not available in the slider by default, but as suggested above you could display another logo/partner slider or another element with different configuration and toggle its visibility on different screen sizes or devices.
Best regards,
IsmaelHi,
Thank you for the update.
The issue seems to occur on screen sizes lower than 480px. To fix the issue, we may need to set a minimum height to the product items to allow them to float correctly beside each other.
.shop_columns_3 .products .product { min-height: 350px; }Please add the code inside the css media query for mobile view.
Best regards,
IsmaelHey dannyl82,
Thank you for the inquiry.
The issue is on a post it then displays the image at the top as the ***-845×321.png version
That is the predefined thumbnail for featured images in a post without sidebar, but it can be adjusted manually in the functions.php file around line 188.
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321);.. or we can use the Simple Image Sizes plugin to adjust the thumbnail size in the Settings > Media panel.
// https://wordpress.org/plugins/simple-image-sizes/
We have to regenerate the images or upload the image again after the size adjustment.
Best regards,
IsmaelDecember 8, 2020 at 4:15 am in reply to: Shop Page – Add Product Category to "Sort by Default Order" Filter #1265661Hey Nik,
Thank you for the inquiry.
Yes, this should be possible but it is not available in the theme by default and it will require modifications that are beyond the scope of support. You may need to hire a freelance developer, or contact our partner Codeable to add the options in the sorting element.
There are available plugins that might help but we have not tested them with the theme yet.
// https://wordpress.org/plugins/woocommerce-product-sort-and-display/
Or we could also use the default category filter.
// https://docs.woocommerce.com/document/woocommerce-product-search/widgets/product-filter-categories/
Please do note that this widget will only work in the default product pages (base shop, product archive etc). It is not going to work or it is not compatible with the Product Grid element.
Best regards,
IsmaelHey Fraser,
Thank you for the inquiry.
Enfold is disabling the WP Media uploader
Yes, it is true that the theme disables the script when it is not needed, but we could set the Performance > Disable Features > Self hosted videos and audio features (WP-Mediaelement scripts) to allow the media element script to always load. This is usually required when there are plugins that depends on the media element script.
Best regards,
Ismael -
AuthorPosts
