anotherbreed
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Dealing with CLS issue (Google Core Web Vitals)Hi there,
thanks for the fast reply!
I don’t know what to say. I have “CLS more than 0.25” marked as Issue on my Google Search Console, both for Desktop and Mobile version of my website, and the number of URLs affected is apparently growing (I started validation on week ago), the URL I mentioned in my first post is the only one listed.
Since the only things I see loaded with some delay are the product pictures, I wonder how I could fix that.
Sorry, I can’t help. I’m not using that plugin anymore (didn’t find a good alternative yet). Good luck.
Also, here are some errors from Google Chrome console (when the above options are active):
Uncaught ReferenceError: _ is not defined at wp-util.min.js:2 at wp-util.min.js:2 public.min.js:6 Uncaught ReferenceError: wpApiSettings is not defined at n (public.min.js:6) at HTMLDocument.<anonymous> (public.min.js:6) at i (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at Function.ready (jquery.js:2) at HTMLDocument.J (jquery.js:2) add-to-cart-variation.min.js:1 Uncaught TypeError: wp.template is not a function at m (add-to-cart-variation.min.js:1) at HTMLFormElement.t.onFoundVariation (add-to-cart-variation.min.js:1) at HTMLFormElement.dispatch (jquery.js:3) at HTMLFormElement.r.handle (jquery.js:3) at Object.trigger (jquery.js:3) at Object.a.event.trigger (jquery-migrate.min.js:2) at HTMLFormElement.<anonymous> (jquery.js:3) at Function.each (jquery.js:2) at a.fn.init.each (jquery.js:2) at a.fn.init.trigger (jquery.js:3)Forum: Plugins
In reply to: [Themify - WooCommerce Product Filter] No results at all?Thanks for the prompt reply.
I tried disabling all the plugins, but still no luck. I’m currently working on a staging environment, so I can’t provide a link at this time. I will make a new test when the website will be online, or will find an alternative, even if I loved the design of this plugin.
Thanks
Thanks for your prompt reply.
Yes, I tested my website with other computers and it seems to work fine! So happy of this plug-in, glad I switched from YITH Wishlist.
Thanks again
Forum: Plugins
In reply to: [WooCommerce] Hide both Categories and Products on Shop Page onlyLooks like I found a solution by copying the following file in my child theme:
content-product_cat.phpI added a condition that basically prevents the list of categories (I decided to display Categories only from the customizer in WooCommerce) from being displayed only in the Shop Page. Added some additional CSS to hide the empty Div container.
Didn’t test what happens on Category pages that are set to show Sub-Categories before the list of products.Here’s how the file does look like now:
<?php if ( is_shop() ): ?> <style type="text/css">div#wc-column-container{display:none;}</style> <?php endif ?> <?php if ( !is_shop() ): ?> <li <?php wc_product_cat_class( '', $category ); ?>> CIAO MIAOA <?php /** * woocommerce_before_subcategory hook. * * @hooked woocommerce_template_loop_category_link_open - 10 */ do_action( 'woocommerce_before_subcategory', $category ); /** * woocommerce_before_subcategory_title hook. * * @hooked woocommerce_subcategory_thumbnail - 10 */ do_action( 'woocommerce_before_subcategory_title', $category ); /** * woocommerce_shop_loop_subcategory_title hook. * * @hooked woocommerce_template_loop_category_title - 10 */ do_action( 'woocommerce_shop_loop_subcategory_title', $category ); /** * woocommerce_after_subcategory_title hook. */ do_action( 'woocommerce_after_subcategory_title', $category ); /** * woocommerce_after_subcategory hook. * * @hooked woocommerce_template_loop_category_link_close - 10 */ do_action( 'woocommerce_after_subcategory', $category ); ?> </li> <?php endif ?>Hope this can be helpful to someone else.
Hi Mohit,
no luck with that, but from your suggestion I was able to investigate further on the page and its permalink – turns out I was able to fix the problem by removing the page completely and create a new one (with the same content) from scratch.
I have an active plugin that automatically creates redirects when permalinks change, and it probably was responsible for creating two different URLs for the same page. Also to note that I was using the URL to the old Shop Page on the menu, that could be another cause.
Now everything works as it should 🙂
Thanks for the help!
- This reply was modified 6 years, 2 months ago by anotherbreed.
Hi Mohit,
thanks for replying.
Since you used is_shop(), I carefully tested your code using
echo "Hello world!";and turns out that it was displayed on both URLs. Both of them take to the Shop, and a redirect loop would occur using that function.Many thanks
Forum: Plugins
In reply to: [Options for Twenty Nineteen] [Feature request] Back to TopYou’re definitely right, I tried to integrate a script I used for another website, but I failed. It probably relies on so much more stuff already integrated into the website itself.
I ended up using WPFront Scroll Top plugin.
Forum: Plugins
In reply to: [Options for Twenty Nineteen] [Feature request] Back to TopHi,
thanks for the reply!
Yeah, I’m not a fan of using plugins for such basic features, I would end up using so many of them and completely bloat my WordPress website. 😛
I’ll try to see if I can find a basic script for that, to integrate in my functions.php
Many thanks
Forum: Themes and Templates
In reply to: [Twenty Nineteen] How to trigger the off-canvas menu?Andrew,
I understand perfectly. I see you’re a volunteer and I’m not expecting you to solve my personal requests. My apologies if this thread made you think that.
Since this is a public support forum, I just wanted to see if someone else might have some advice for me about this technical question.
Many thanks
Forum: Themes and Templates
In reply to: [Twenty Nineteen] How to trigger the off-canvas menu?Andrew,
thanks for sharing your point of view.
I’m not a coder, you’re right. But I have worked the last 12 years as a web designer (html5, css), and think that how the menu has been designed is not very functional.
That’s my opinion of course, but I noticed I’m not the only one commenting about this feature, anyway:
– https://wordpress.org/support/topic/show-all-menu-items/
– https://wordpress.org/support/topic/avoid-menu-shortening-on-mobile-displays/Still, I do like this theme a lot, because it is minimal and fast. That’s why I want to use it for my website and invest time in doing some tests. So any help with that will be appreciated 🙂
Thanks
Forum: Themes and Templates
In reply to: [Twenty Nineteen] How to trigger the off-canvas menu?Hello,
thanks for the reply, as I said, it is a bit confusing right now, I don’t have many links and having it shortened only for one or two links (and one of them is Contact which is very important for my customers and must visible) is not ideal.
I would rather replace the menu with a single button which opens the off-canvas menu, but still have not figured out how to do that.
Thanks
Hi Andrew,
thanks for your fast reply! Never mind, I’ve realized that it only happens when I have the inspector open and click somewhere in the source code and after that, I click somewhere on my website.
It won’t be a problem for visitors I guess.
Many thanks
Forum: Plugins
In reply to: [Options for Twenty Nineteen] Showing excerpt on Posts pageYes, that is correct!
I also removed:
wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentynineteen' ), 'after' => '</div>', ) );Not sure what it is for, but the result I got is what I needed.
Thanks again