Niall a11n
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Storefront] Edit Handheld Footer Menu – StorefrontHi @greencl,
Sorry to hear the code gave an error. Hmm, I tested the code on my local testing site and it appears to be working. However, I seem to have provided code to remove the cart instead of the other links.
Please find the updated code for removing links except for the cart, and instructions on how to add it to your site via the Code Snippets plugin:
// Remove all handheld menu links except the cart add_filter( 'storefront_handheld_footer_bar_links', 'jk_remove_handheld_footer_links' ); function jk_remove_handheld_footer_links( $links ) { unset( $links['my-account'] ); unset( $links['search'] ); return $links; }I also recommend selecting the
Only run on site front-endoption when adding the snippet, as that will prevent any code from breaking your whole site, as Code Snippets should be prevent it from loading if it causes an error. Here’s how I added the code via Code Snippets on my test site:
Link to image: https://d.pr/i/408OFpYour site’s mobile version should now looking something like my test site:
Link to image: https://d.pr/i/jDUJexPlease let us know if that works for you!
Hi @lflizmark,
Yes, I see what you mean. I recommend following the existing bug report here for updates about this problem.
I have made a note of your findings on the report. Thank you for sharing!
You’re welcome and thanks for the update, @boppar! Glad to hear the
Uncroppedoption worked for you.Forum: Themes and Templates
In reply to: [Storefront] Edit Handheld Footer Menu – StorefrontHi @greencl,
Thanks for reaching out to us!
If you would like to remove the menu links and leave only the “Add to cart” in the handheld footer menu, I recommend adding the custom code from the following Storefront doc to your site using something like the Code Snippets plugin:
// Remove all handheld menu links except the cart add_filter( 'storefront_handheld_footer_bar_links', 'jk_remove_handheld_footer_links' ); function jk_remove_handheld_footer_links( $links ) { unset( $links['cart'] ); return $links; }Please let us know how that goes!
Forum: Themes and Templates
In reply to: [Storefront] E_COMPILE_ERROR with Storefront ThemeHi @cuttycliffy,
Thanks for confirming your WooCommerce version!
The settings should be stored in the database, so reinstalling Storefront should not remove any specific set up information.
Having said that, have you made any changes to the theme’s files or folders directly? If you hav made any changes, they would be deleted if you reinstall Storefront.
I recommend first making a full back of your site, then try reinstalling Storefront.
Please let us know how that goes!
Hi @globalmatt,
Thanks for sharing this information. As this post is set to resolved, I recommend creating a new thread if you still need help.
I do see the same problem on my test site running WordPress 5.7.2, Storefront 3.7.0, and WooCommerce 5.4.1:
Link to image: https://d.pr/i/EsSzEVI renamed the
storefront/assets/css/base/gutenberg-editor.cssfile like you suggested, which fixes the problem:
Link to image: https://d.pr/i/o8KeY4This problem is indeed related to the [Gutenberg master: several blocks are left aligned on wide screens #1320 issue you shared](https://github.com/woocommerce/storefront/issues/1320).
Thanks for reporting your findings to us. I have added them to the bug report.
Forum: Reviews
In reply to: [Google for WooCommerce] Not able to get through setup.Hi @djmisha,
Thanks for the logs. Those seem to be from a
fatal-errorslog rather than thegoogle-listings-and-ads-xxxxxxxx.log.However, the logs do indicate there are several errors related to Google Listings & Ads that are likely caused by a plugin or theme conflict.
The best way to determine if there is a conflict or not is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce and Google Listings & Ads
- Try to set up the Google Listings & Ads plugin again
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Please let us know how that goes!
Forum: Themes and Templates
In reply to: [Storefront] URL Query Parameters Break Some SitesHi @mattborgman,
Thanks for reaching out to us!
Hmm, as this issue involves a fairly complex development topic, I’m going to leave it open for a bit to see if anyone is able to chime in and help you out.
I can also recommend visiting the WooCommerce Facebook group or the
#developerschannel of the WooCommerce Community Slack for help.We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
Hi @boppar,
Thanks for the update!
assume all my product images are 1200×800 except for the category with ID 64 where the images would be 800×1200 (images standing instead of lying). Could I then choose unncropped in settings? I’m not sure if this is acceptable as I read in some documentation that all product images must have same aspect ratios and size?
Hmm, if you upload images with these dimensions and set
Uncroppedin the Product Images Customizer settings, the images should maintain the same aspect ratio. That means the1200×800(16:10aspect ratio; landscape image) and800x1200(10:16aspect ratio; portrait image) images will maintain the same ratios whether their size increases or decreases.Would that work for you? If not, I think you would need custom code to set different images sizes depending on the category.
Hi @yartenaey,
Thanks for the update! I am happy to hear your site is now working correctly.
Hmm, I noticed via this tool that your site uses Cloudflare’s DNS. Did you by any chance have caching or any site performance features like minification set up in Cloudflare?
If so, I think Cloudflare is the likely cause here. When you changed the DNS to the cloned site, that would generate new files in Cloudflare’s caching systems, which would have fixed the eWay problem.
Hi @yartenaey,
Thanks for the update!
Hmm, that is certainly a bit of a mystery! Based on your description, it does sound to me like there is some caching going on. If any files were cached before updating to WooCommerce 5.4.1, they may still be served to you and some of your customers and not others. That would explain why some users and you still have problems with eWay.
Can you please ask your host if they have any server-side caching that you cannot clear yourself? If so, please ask them to clear that cache, then test eWay again to see if that helps.
Hi @yartenaey,
Thanks for reaching out to us! I am sorry to hear you are still having problems with the expiry field after updating to WooCommerce 5.4.1.
I added the No Standing, Only Dancing product to my cart, and do not see the expiry field problem:
Link to image: https://d.pr/i/ComIKII suspect the problem may be to do with caching. Can you please test eWay using your browser’s incognito mode or using a different browser? If that works, I recommend clearing your browser’s cache and testing eWay again.
I also recommend following our guide on Configuring caching plugins if you have any caching plugins active on your site.
Please let us know how that goes or if you need further help!
Hi @jamierood,
Thanks for the clarification. I think I understand what you mean now. Here’s what I see on your site:
Link to image: https://d.pr/i/koP2MnIf I understand correctly, you would like to display the images so they are the same width and height (square), right?
If so, please visit WP-Admin > Appearance > Customize > WooCommerce > Product Images. Next, select the
1:1option under “Thumbnail Cropping” as follows, which should crop the images into a square automatically:
Link to image: https://d.pr/i/5OfpeAI also noticed that your site appears to use Jetpack Site Accelerator for serving images, which should automatically detect and load the updated image sizes.
Please let us know how that goes or if you need further help!
Forum: Themes and Templates
In reply to: [Storefront] Previous and Next images off screen@bloke that’s a great question. Custom CSS added in the Theme Customizer (“Additional CSS” section) gets loaded after the theme’s original CSS and other CSS files. This ordering allows you to override specific CSS elements from a theme or plugins via the Customizer.
In this case, the “Additional CSS” would get loaded after the WooCommerce CSS, Storefront CSS, and your child theme’s CSS. Therefore, the “Additional CSS” overrides all the other CSS code loaded on the page.
Also, any code added to the “Additional CSS” section is tied to the current theme, so you would need to add the code to a new theme if you change themes. If you did want to add the CSS code to your child theme, you may be able to add
!importantto the end of the selector to override any other code like this:@media (min-width: 768px) { .storefront-product-pagination a[rel=prev] { left: -410px!important; } }However, there may be other code that already has
!importantadded to it. If the code gets loaded after your child theme, it will override your child’s themes code.Please let us know if you have any further questions!
Forum: Themes and Templates
In reply to: [Storefront] Products not visible in mobile versionYou’re welcome. We look forward to hearing from you 🙂