Forum Replies Created
-
AuthorPosts
-
Hi,
Thank you for the update.
Try to add this code in the functions.php file to display the stock after the price.
add_action("woocommerce_single_product_summary", function() { global $product; echo wc_get_stock_html( $product ); // WPCS: XSS ok. }, 15);
You may need to remove or hide the default “in stock” element using css.
Best regards,
IsmaelHi,
Thank you for the update.
That is possible but it is not recommended because a lot of the files are related and updating only one file could lead to errors or unexpected behavior. Please update the theme and create a child theme in future.
Best regards,
IsmaelHi,
Thank you for the info.
Try to replace the snippet or filter with the following code.
function avia_blog_post_query_mod($query, $params) { foreach($query['post_type'] as $key => $value) { if( $value == 'acf-field-group' ) { unset($query['post_type'][$key]); } } return $query; } add_filter('avia_masonry_entries_query', 'avia_blog_post_query_mod', 10, 2); add_filter('avia_blog_post_query', 'avia_blog_post_query_mod', 10, 2);
Best regards,
IsmaelHi,
Are you referring to the main blog page? Did you set the blog page in the Enfold > Theme Options panel? The theme should automatically append the current page number to the title when the page is paginated.
Screenshot: https://postimg.cc/TLxNH33N/48a89310
Please provide a direct link to the page with the pagination so that we could check it.
Best regards,
IsmaelJune 28, 2021 at 8:15 am in reply to: Blogposts not indexed by search engines (but pages, portfolio and products are) #1307675Hi,
The posts are actually included in the sitemap. Did you try to resubmit the sitemap to the search engine? (see private field)
You may need to manually specify each sitemap in the robot.txt file instead of declaring the index file. Example:
Sitemap: https://e-commercemanagers.com/post-sitemap1.xml Sitemap: https://e-commercemanagers.com/post-sitemap2.xml
Please note that this process could take a while, so you may have to wait if you have just recently added your sitemap.
Best regards,
IsmaelJune 28, 2021 at 8:04 am in reply to: Sub Menu Element – remove bullets and add own icon (mobile with toggle switch) #1307673Hi,
Thank you for the info.
To remove the borders and arrows, you can use this css code.
.responsive #top .av-menu-mobile-active .av-subnav-menu li { border: none; } .responsive #top .av-subnav-menu .avia-bullet { display: none; }
However, in order to change the icon, you may need to modify the enfold/config-templatebuilder/avia-shortcodes/menu/menu.php file and add the svg element around line 624.
$mobile_button = $mobile == 'active' ? "<a href='#' class='mobile_menu_toggle' " . av_icon_string( 'mobile_menu' ) . "><span class='av-current-placeholder'>" . __( 'Menu', 'avia_framework' ) . '</span></a>' : ''; if( ! empty( $mobile_button ) && ! empty( $mobile_submenu ) && $mobile_submenu != 'disabled' ) { $submenu_hidden = 'av-submenu-hidden'; }
You can change it via css but you have to register the genericons package or font files.
// https://wpsites.net/web-design/installing-genericons/
Best regards,
IsmaelHi,
Thank you for the info.
This is possible, but you have to use the get_adjacent_post function to get the next and previous posts, queried by date. Or enable the Enfold > Blog Layout > Single Post Navigation option, which is already using the get_adjacent_post function out of the box.
// https://developer.wordpress.org/reference/functions/get_adjacent_post/
// https://core.trac.wordpress.org/browser/tags/3.1.1/wp-includes/link-template.php#L1088The related posts section are already queried by date but it fetches all related posts from the top irregardless of the current post.
Best regards,
IsmaelJune 28, 2021 at 7:35 am in reply to: Menu item is not displayed on the home page + different video size in microsoft #1307668Hi,
We took a screenshot of the site again today, and as you can see, the menu item is displaying properly. The menu items in the footer and the socket are both displaying properly as well. We were not logged in when we checked the page.
Screenshot: https://imgur.com/yNAJoHd
Which browser are you using? We checked the site on Chrome.
Best regards,
IsmaelHi,
No problem. Please let us know when you find anything and feel free to open another thread if you have more questions. We will close this one for now.
Thank you for your patience. Have a nice day.
Best regards,
IsmaelHi,
Thank you for the update.
We just realized that the same code already exist in the file, so we removed the modification and edited the existing one. You can find it around line 817. The categories are now displaying above the post title.
Best regards,
IsmaelHi,
Where did you post the temporary login? We did not receive any replies from you after our last response above or when we asked you for the login token. Please note that you have to post the login token URL here in the forum. Did you send it to an email?
Best regards,
IsmaelHi,
We are able to reproduce the issue in the zafferana-etnea page but not on the calatabiano page. The zafferana-etnea contains duplicate navigation.
Best regards,
IsmaelHi,
Thank you for the info.
For some reason, the size is being retained to 40px. We had to modify the enfold/framework/js/conditional_load/avia_google_maps_api.js and adjust the marker size directly in this line (300):
if(_self.retina && size > 40) size = 160; //retina downsize to at least half the px size
Best regards,
IsmaelJune 25, 2021 at 1:24 pm in reply to: iframe: content does not adjust to fit in iframe container in Google Chrome #1307433Hi,
Thank you for the update.
What happens when you remove the iframe=true parameter in the image URL? You do not have to add the parameter because the theme already applies lightbox on images such as png.
Best regards,
IsmaelHey Konstantin,
Thank you for the inquiry.
The theme automatically adds a “nofollow, noindex” meta tag to paginated pages to prevent content duplication, so you do not have to adjust the pagination title.
Best regards,
IsmaelHey soltner,
Thank you for the inquiry.
We checked the product page and it looks like the stock is now located after the price. Do you require more help with this? You can use the template hooks if you want to move certain elements in the product page.
Example:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 10 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 30 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 40 );
Best regards,
IsmaelJune 25, 2021 at 8:33 am in reply to: Open .sub-menu elements when user mouses over .avia-menu .av-main-nav-wrap? #1307411Hey fabian_stricker,
Thank you for the inquiry.
You can create an external js script and register using the wp_enqueue_script function, or add an inline script using the wp_add_inline_script function. You can also use the wp_head or wp_footer to insert script inside the head tag or before the closing body tag. Whichever way you choose should be fine.
inline script: https://developer.wordpress.org/reference/functions/wp_add_inline_script/
external js: https://developer.wordpress.org/reference/functions/wp_enqueue_script/You can also add the script directly in the template files but we recommended doing one of the above methods.
Best regards,
IsmaelJune 25, 2021 at 8:24 am in reply to: Blogposts not indexed by search engines (but pages, portfolio and products are) #1307410Hey Jooster,
Thank you for the inquiry.
How or where do you check this? The meta tag seems to be set correctly for the blog overview page and the single post page.
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
Are you using a plugin to create the sitemap?
Best regards,
IsmaelHey Jooster,
Thank you for the inquiry.
This option or element is not available out of the box but you might be able to do the same thing using the layer slider, or by adding custom scripts. Unfortunately, this is beyond the scope of support, so you may need to hire a freelance developer or contact our partner, Codeable.
Best regards,
IsmaelHi,
Thank you for the update.
The login details from the previous thread is no longer working. Please post another login account so that we could check this properly again. Make sure that the Appearance > Editor panel is accessible.
Best regards,
IsmaelHey!
UPDATE: If you really need to move the coupon, try the solution provided here instead.
// https://www.cloudways.com/blog/move-woocommerce-coupon-field/
Cheers!
IsmaelHi,
Thank you for the info.
Why do you need to move it down again? The issue occurs because when you move the coupon container down or relocate it, the default script that is responsible for the coupon field toggle cannot find the appropriate element anymore. We recommend keeping it in its default place.
Best regards,
IsmaelJune 25, 2021 at 7:13 am in reply to: Google recaptcha is displayed in wrong language (russian) #1307403Hi,
Thank you for the update.
Did you disable the Performance > File Compression settings after doing the modification? Please post the login details in the private field so that we can check the site. Make sure that the Appearance > Editor panel is accessible.
Best regards,
IsmaelHi,
Thank you for the info.
It works correctly when we disable the avf_title_args filter in the functions.php file. Try to add a condition so that the filter is only applied on single posts.
function fix_single_post_title($args,$id) { if(!is_single()) return; $args['title'] = get_the_title($id); $args['link'] = ""; $args['heading'] = 'h1'; return $args; } add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
Best regards,
IsmaelHi!
Thank you for the info.
Does it work correctly when you add it in the Enfold > General Styling > Quick CSS field or in the child theme’s style.css file? You may need to temporarily disable the Performance > File Compression settings and purge the cache after adding the css code.
Regards,
IsmaelJune 25, 2021 at 6:51 am in reply to: WooCommerce Product Catalog displayed as blog archive #1307397Hi,
Thank you for the update.
Would you mind posting the login details privately so that we could check the site? Please make sure that the Appearance > Editor is accessible so that we could edit the files when necessary.
Best regards,
IsmaelHi,
Yes, the new GA version should work fine with the theme. It was added on version 4.8.
- added: support for new Google 4 Analytics Tracking Codes G-XXXXX
// https://kriesi.at/documentation/enfold/changelog/
Best regards,
IsmaelHi,
Looks like it is already displaying the posts by date. The two adjacent posts to casa-del-horno sorted by date and with the same tag “Panama” are casa-nuratti and casa-perez. Please note that the related posts section will display posts with the same tag as the current post.
Which posts would you like to see in the related posts section when the current post is casa-del-horno?
Best regards,
IsmaelHi,
Glad to know that it is working. It should work fine even when the file compression settings are enabled. We just disabled it temporarily so that the changes will be immediately visible.
Best regards,
IsmaelHi,
Yes, the layer slider is included and bundled with the theme. We are just trying to say that we did not create it and we do not maintain it, so any related issue with it will be difficult for us to debug, moreso when we do not see any script errors just like in this case.
I will forward the issue to our channel so that other moderators could check it.
Best regards,
Ismael -
AuthorPosts