- This topic has 10 replies, 3 voices, and was last updated 3 years, 6 months ago by
David.
-
AuthorPosts
-
April 25, 2021 at 5:45 am #1747939
roadlink
Hi,
Lighthouse tool gives this error on mobile.“<span class=”continue-shopping-text”>Continue Shopping →</span>”
https://prnt.sc/121fk4wI tried the snippet from here but didn’t solved.
https://generatepress.com/forums/topic/links-do-not-have-a-discernible-name/#post-1477146April 26, 2021 at 3:25 am #1749180David
StaffCustomer SupportHi there,
Currently there is no simple method of filtering that element to add an aria-label or other markup – we’ll address that in a future update.
Looking at your site – i notice there is no Add to Cart buttons on the shop / archive pages ( only single products ) – is that correct ?
If so you can disable that Element in Customizer > Layout > Woocommerce –> Display cart panel on add to cart – as it only ever displayed if a user adds to cart from the shop / archives.
April 26, 2021 at 4:23 am #1749232roadlink
Hi David,
Yes, I don’t use add to cart buttons shop/archive pages.
I already use that customize tool to do that. https://prnt.sc/123caw6
Is there any other setting?April 26, 2021 at 4:38 am #1749249roadlink
Should I use this one?
add_action( 'woocommerce_after_shop_loop_item', 'remove_add_to_cart_buttons', 1 ); function remove_add_to_cart_buttons() { if( is_product_category() || is_shop()) { remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); } }April 26, 2021 at 5:30 am #1749312David
StaffCustomer SupportUncheck the: Display cart panel on add to cart option:
April 26, 2021 at 8:34 am #1749780roadlink
Hi David,
I have missed that. Done know.
But What is it for actually?April 27, 2021 at 12:26 am #1750374David
StaffCustomer SupportDisplays a sticky panel when Add to Cart is clicked on shop archives:
April 27, 2021 at 1:00 am #1750397roadlink
I got it. In that case, I unclick it, and error gone. 🙂
I believe you can fix the issue in next releases for other people.
thanks for your time.
April 27, 2021 at 2:40 am #1750489David
StaffCustomer SupportWe will 🙂
Glad to be of help
October 14, 2022 at 2:12 am #2373145Julia
Dear David,
You mentioned in 2021 that the problem will be solved in future updates:
–> Links do not have a discernible name – Lighthouse error <–
Is there already a solution? I get the same error on my main page:
https://www.ihrcoachinginstitut.deExample: div.gb-container > div.gb-inside-container > div.gb-container > a.gb-container-link
Best regards,
Julia
October 14, 2022 at 7:39 am #2373439David
StaffCustomer SupportHi there,
the issue in this topic is different to the one you have.
Question – instead of using a Background image with a Container link, why not simply use an Image Block with a link to that article ?
-
AuthorPosts
- You must be logged in to reply to this topic.