- This topic has 21 replies, 5 voices, and was last updated 3 years, 2 months ago by
David.
-
AuthorPosts
-
November 14, 2022 at 3:07 pm #2415625
Craig
Hi
I am using a plugin to assist me with SEO and it is giving me the message –
Add missing link text to 2 internal links.
It says the error is on my cart page
How do I add the missing link text to the 2 internal links?Thanks
CraigNovember 14, 2022 at 5:17 pm #2415712Leo
StaffCustomer SupportHi Craig,
I don’t believe this is a GP issue since the issue is on the cart page.
This might be something you will need to check with WooCommerce’ support.
Any chance you can activate a Twenty series WP theme to test first?
January 30, 2023 at 12:04 pm #2514585Craig
Hi Leo.
The error on the cart page is for this bit of code that I find in the view page source. This was a custom cart you guys helped me set up. I followed Yings Add this PHP snippet to create a shortcode for the cart [custom_cart]: to set it up.
I would like to put a no index no follow tag here in this custom cart.
Do you feel this is still something I need to take up with woocommerce or can you assist me?
<span class=”menu-bar-item wc-menu-item has-items”>
<span class=”gp-icon shopping-cart”>
<svg viewBox=”0 0 576 512″ aria-hidden=”true” version=”1.1″ xmlns=”http://www.w3.org/2000/svg” width=”1em” height=”1em”>
<path fill=”none” d=”M0 0h576v512H0z”/>
<path d=”M181.54 409.6c-29.249 0-52.914 23.04-52.914 51.2 0 28.16 23.665 51.2 52.915 51.2 29.249 0 53.18-23.04 53.18-51.2 0-28.16-23.931-51.2-53.18-51.2zM22 0v51.2h53.18l95.725 194.304-35.897 62.464C115.598 342.272 141.124 384 181.54 384h319.08v-51.2h-319.08l29.249-51.2h198.096c19.943 0 37.492-10.496 46.533-26.368L550.61 89.088c9.838-16.896-2.925-37.888-23.133-37.888H133.944L108.95 0H22zm425.442 409.6c-29.25 0-52.915 23.04-52.915 51.2 0 28.16 23.665 51.2 52.915 51.2 29.249 0 53.18-23.04 53.18-51.2 0-28.16-23.931-51.2-53.18-51.2z”/>
</svg>
</span><span class=”number-of-items “>2</span><span class=”amount”><span><span>R</span>1399.00</span></span>Thanks
January 30, 2023 at 12:43 pm #2514633Ying
StaffCustomer SupportHi Craig,
Not seeing the custom cart on your site, and also when I search for
<a href="https://www.yourdomain.com/cart/, it didn’t return anything.Can I see the error message in a screenshot?
January 30, 2023 at 12:51 pm #2514638Craig
Hi Ying
Thanks for getting back to me. Please can you try again and search for “custom-cart” in view page source.
It is there in the head of all the pages.
The shortcode is in a hook element set for the entire site
Thx
January 30, 2023 at 1:06 pm #2514661Ying
StaffCustomer SupportHum, still not seeing it:
https://www.screencast.com/t/9ZmgaeUx33VWhat is the hook you are using?
January 30, 2023 at 11:41 pm #2515089Craig
The hook is called “cart”
That screencast is for another website of mine but it is not the one in question here. Please see url provided. You should find “custom-cart” now.
thanksJanuary 30, 2023 at 11:43 pm #2515092Craig
Sorry for the confusion. I started this ticket using the URL in the screencast but am having the same issue on the another domain as well
Sorry
January 30, 2023 at 11:53 pm #2515096Craig
How do I add a screenshot?
January 31, 2023 at 12:07 am #2515105Fernando Customer Support
Hi Craig,
Here’s an article you may refer to with regards to adding screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots
January 31, 2023 at 12:41 am #2515122Craig
Thx Fernando
Please see the link to the error message I am trying to resolve.
January 31, 2023 at 5:37 am #2515403David
StaffCustomer SupportHi there,
if the warning is related to the
custom_cartelement – then this is what i see:https://www.screencast.com/t/7EU8nwch
Lets assume that the cart has no items in it when the SEO plugin is scanning the page.
Then it won’t contain thenumber-of-itemselement which “could” result in their being no text in the link akamissing text in linkHowever if i test an empty cart page using Lighthouse tools i would expect to see the equivalent issue ie.
Links have no discernible name. But we don’t see this error as the<a>has atitleattribute which suffices as a text replacement.And that link is the same link that would appear across your site, not just the cart page, and its also the same link that GP would output on any site using its Woocommerce cart menu.
So is the SEO audit reporting a false positive? Or is there something else we are missing ?
January 31, 2023 at 10:42 am #2515940Craig
Hi David.
I’m going to try to summarize to make sure we haven’t missed anything.
When the initial scan was done there was an item in the basket. I have removed the item from the cart and done a rescan and it is the same.
After the scan the App says there is a critical issue –
“After you have added a link text to all the links listed below, rescan this report by clicking “Rescan this landing page”.
https://go……..ed/cart/I am getting this critical issue on every page.
When I go to any page on this domain and Right click -> view page source and search for “gotyoucovered.co.za/cart/” it only comes up once. It is in the custom-cart div in the header.
Also in customizing ->layout ->WooCommerce – in the General tab – Display cart in menu – is not checked. When I check that option another cart appears in the header – the wooCommerce cart.Using Yings article on creating a custom cart – see link above – I created a custom cart by adding a function to functions.php.
The custom cart is activated using a shortcode from the function with the hook – generate_after_header_content and Display Rules – Entire site.
I just ran a check and changed the Display Rules to only 1 page – the blog page. I then did a rescan and the issues dissapeared from every page except for the blog page where the cart is. The problem is I want the cart available throughout the site on every page.
In your responce you say “which suffices as a text replacement.” In the SEO APP the Guideline to fix this issue it says “keywords located within the anchor text to understand what the site and, specifically a page, is about.”
I am not sure why this is an issue as I have it in robots.txt to not scan the cart page and I have set this up on Yoast as well.
Ok I think I just answered my question to myself there. Its not the cart page that is being scanned, its the hook on the page.Can I block this url https://go……..ed/cart/ from being scanned or followed in robots.txt ie nofollow noindex or amend the function to do this.
would that solve the problem and would that have any negative impact on the site
Else I am not sure where to from here
January 31, 2023 at 11:40 am #2516056Ying
StaffCustomer SupportThe custom cart should output exact the same as the Woocommerce cart, they are using exact same code.
So I’m not sure why the issue occurs.
Is the custom cart necessary? Not possible to just use the default Woo cart on your site?
January 31, 2023 at 12:07 pm #2516106Craig
I have disabled the custom cart and still get the same result in the SEO when scanned. The consequence of disabling the custom cart is the cart is now on the menu row and I would like it to the right of the login|register. Can we do this with CSS
-
AuthorPosts
- You must be logged in to reply to this topic.