Forum Replies Created
-
AuthorPosts
-
Hey peterolle,
single product pages contain the body class single-product so you could use.single-product #av_section_1 { border: red solid 2px; }
for the whole section
but if you only want the style the related products items, it contains the classes related products so you could use.single-product .related.products .product { border: red solid 2px; }
Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Ok, I didn’t understand your original request to be full width, so try this:function av_woo_tabs_below_product_summary_full_width() { remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 ); add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 20 ); } add_action( 'init', 'av_woo_tabs_below_product_summary_full_width');
Best regards,
MikeHi,
Glad that this helped, I don’t think that it would conflict but I don’t know for sure and I can’t test, if you do try the plugin you can always keep this in mind as you test.
In my research and testing I found a working way to add a option “category” to the sort by filteradd_filter( 'avf_wc_product_order_dropdown_frontend', 'my_add_custom_sorting_options' ); function my_add_custom_sorting_options( $options ){ $options[ 'cat' ] = 'Category'; return $options; }
but this doesn’t work because there doesn’t seem to be a built-in query to orderby categories, or at least I couldn’t find one. I assume that the plugin creates a query to do this.
Otherwise perhaps this will put you on the right track and you or your team can write a query for this, I was not able to.Best regards,
MikeHi,
For mobile width I see that your grid is two columns wide and the items in the right column have a right margin, so try adding this css for mobile devices, it will remove the margin and adjust the width of the items to fill the grid width like above.@media only screen and (max-width: 767px) { .responsive #top #main .container_wrap_first.shop_columns_3 .products .product:nth-child(even) { margin-right: 0; } .responsive #top #main .container_wrap_first.shop_columns_3 .products .product { width: 46%; } }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
I also checked the tablet sizes when the columns first become three wide and it looks good there.In case you are checking the css on a iPhone, please note that iPhones can be hard to clear the cache, often you also need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.
Best regards,
MikeHi,
Perhaps you have a plugin conflicting with the setting because the enable the cookie consent messages (cookie bar) option shows correctly for me in Chrome:
and in Firefox:
Try disabling all of your plugins and then reload the page. If that doesn’t help try creating a second admin account and then login with that account and check.Best regards,
MikeHey peterolle,
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function av_woo_tabs_below_product_image() { if ( is_product() ) { remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1); add_action('avf_sidebar_position', 'woocommerce_output_product_data_tabs', 1); } } add_action( 'template_redirect', 'av_woo_tabs_below_product_image');
This moves the product tabs under product gallery and above product sidebar, the sidebar is not required, I’m just noting where it will be if used. This works for both WooCommerce 3.0 product gallery & Default enfold product gallery
Best regards,
MikeMay 4, 2024 at 4:02 pm in reply to: Video fallback image causing enormous performance issues on mobile devices. #1442293Hi,
When I look at the pagespeed results for your homepage the first issue on mobile is Largest Contentful Paint element for your profile image.
This image is a very large image and it looks like a plugin adds this to it ?fit=200%2C300&ssl=1 to make it show smaller on the screen, but it is still a large image when loaded. So I downloaded your image and manually resized to to 200×300 and replaced the image on your homepage.
This solved the error and your mobile scrore went from 72 to 83 after doing this. There are other images on your page that you could do this for.
But I’m not sure what to do about some of these, for example the Reduce unused CSS is pointing at the cached css files from a plugin, and the Reduce unused JavaScript issue is pointing to your Google Tag Manager code, which I’m sure that you want to keep on your page.Best regards,
MikeHi,
As I understand your situation, when you have the enable the cookie consent messages (cookie bar) enabled the cantact form Google recaptcha is disabled and shows a message, this is the correct behavior, and then when the user accepts the cookie bar the Google recaptcha message doesn’t go away, to correct this go to the theme settings and when you enable the cookie consent messages (cookie bar), go to the bottom of the panel and enable the Show advanced options and enabled Auto Reload Page on Accept Settings
Now the page should reload when the cookie bar is accepted and the Google recaptcha will show.Best regards,
MikeHey Christy,
Thank you for the link to your site, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_script() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ var width = $(window).width(); if (width > 767) { $('.avia-pricing-table-container').each(function(){ var $columns = $('li',this); var maxHeight = Math.max.apply(Math, $columns.map(function(){ return $(this).height(); }).get()); $columns.height(maxHeight); }); } })(jQuery); }); </script> <?php } add_action( 'wp_footer', 'custom_script', 99 );
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Best regards,
MikeHi,
To remove the items that you listed above Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function my_woocommerce_catalog_orderby( $orderby ) { unset($orderby["menu_order"]); unset($orderby["rating"]); unset($orderby["rand"]); unset($orderby["id"]); return $orderby; } add_filter( "avf_wc_product_order_dropdown_frontend", "my_woocommerce_catalog_orderby", 20 );
the menu will then look like this:
but to add the category item you will need to use the WooCommerce Product Table plugin this is a paid plugin and I don’t know if it will work correctly with Enfold.
This is the article that says how to add categories to the options.Best regards,
MikeHi,
I don’t see your five columns on your page so I assume that you have folowed Guenni007’s advice, thanks Guenni007.
Shall we close this thread then?Best regards,
MikeHi,
It looks like you tried to modify the width of the items and the margin in between and the new width doesn’t fill the width of the grid, this css it will keep the space in between that you wanted and also fill the grid width:#main .container_wrap_first.shop_columns_3 .products .product { width: 30.59%; }
The grid needs to keep it’s float left so when you have a odd number the grid items they align left to right and align with the product sort.
If you really want to keep the current width and don’t mind rows with less than 3 items to also centered then you can try this css:#main .container_wrap_first.shop_columns_3 .products.columns-3 { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; }
Best regards,
MikeMay 4, 2024 at 12:54 am in reply to: erledigt – Frage zu #1439344 – anderes Logo bei Mobilversion #1442238Hi,
I logged into your site and found that your snippet to change the logo for mobile was disabled, so I enabled it and found that it works correctly. Please see the screenshot in the Private Content area of what I see, please check.
In your screenshot it looks like you were using a iPhone when you saw the “Enfold” logo on mobile.
Please note that iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.
So if you see the “Enfold” logo on mobile try to Clear the History on your iPhoneBest regards,
MikeHi,
Glad Rikard could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Ok, we we leave this open for now to hear back from you.
My demo site is also a shared hosting package, I had the header and footer from my demo disabled because it didn’t match your site but that should not have made a difference in the loading time.
Anyways, try to find out if your server has a cache, as I don’t see any reason for the theme to behave so differently on your server than my server, perhaps there is a “feature” that might cause this like a “object” cache.Best regards,
MikeHey djsmbd,
It looks like the data-av_icon in the shortcode is corrupt, please try to recreate the shortcode and add it to a new “Custom HTML” widget again.
currently it looks like you are using a “text widget” and the “visual tab” in it can corrupt HTML:
this is why the “Custom HTML” is better for HTML
Best regards,
MikeMay 3, 2024 at 4:58 pm in reply to: Replace Lightbox image with magnifying glass for WooCommerce products #1442206Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeMay 3, 2024 at 4:55 pm in reply to: Structured integration of various Enfold pages into one site – mobile view #1442205Hey klick-design-rbh,
When I check the slider image of a chair on the right side is the same in the first three tabs, but in the page source code they are different sections, so I assume that you can change this element.
If I don’t understand correctly then please explain further and perhaps screenshots would help, along with a admin login so we can examine.
For your second question you will need to use custom css, please explain how you want the mobile view to be.Best regards,
MikeHi,
Thanks for the screenshot, so you want to move the burger menu “X” over the logo, are you sure you want to do this, each time you open and close the burger menu on mobile there is going to be a big “jump”. Right now the burger menu icon stays in the same place when open or closed.
Nonetheless, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { #top #av-burger-menu-ul { vertical-align: top !important; padding: 130px 0 !important; } .responsive.av-burger-overlay-active #top #wrap_all .main_menu { top: -90px; } }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad to hear that you have this sorted out, this is the recommended solution so we will go ahead and close that as you have asked. if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
when I check your mobile menu the top line is almost on the burger menu “X” please see the screenshot in the Private Content area to ensure that this is what you see also.
If not then perhaps your mobile device cache is showing you an old version, if this is what you see and you want it even higher try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top #av-burger-menu-ul { vertical-align: top; padding: 190px 0 !important; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.
Please note that testing with iPads & iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.Best regards,
MikeHi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad Rikard could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHey jamesbarrell,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top #header .av-main-nav > li.current-page-ancestor > a .avia-menu-text { color: #afbf36; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeHi,
Please see your other thread about showing woocommerce product categories
You will need to use the shortcode instead of the masonry element.Best regards,
MikeHi,
Thank you for your patience and the link to your page, to research the issue of the video loading twice I copied your page to my test site and each of your videos only loaded once, you have one at the top startseite.mp4 and one at the bottom hintergrundvideo_1.mp4
I then checked your page again and each video was loaded twice:
I tried disabling your plugins and testing again, but it still showed the videos loading twice, so I’m not sure if this is a cache issue. Does your web server use a “object” cache such as Memcached, Redis, Varnish? I’m not sure what would cause the videos to load twice but it doesn’t seem to be caused by the theme since I can’t reproduce it.
If you do have a server cache try disabling it and see if that helps, it may take a few hours.
As for the prelaoding issue, the prelaoder will not show the page until it is fulling loaded, and when it is off your page will show before it is fulling loaded, so this behavior is expected since you page is loading slowly. I also note that my clone of your site loads in under 9 seconds even though all of the images and videos are pull from your server, you site is taking over 22 seconds, this is strange.Best regards,
MikeMay 2, 2024 at 10:48 pm in reply to: How to add packages with free symbols / Icons in enfold #1441999 -
AuthorPosts