Site logo

Archived topic

Add missing link text to 2 internal links

21 replies · Started by Craig on November 14, 2022

Viewing posts 1–15 of 22

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
Craig

Hi 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?

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?

Hi 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?

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

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.
thanks

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

How do I add a screenshot?

Thx Fernando

Please see the link to the error message I am trying to resolve.

Hi there,

if the warning is related to the custom_cart element - 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 the number-of-items element which "could" result in their being no text in the link aka missing text in link

However 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 a title attribute 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 ?

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

The 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?

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

This archived topic is closed to new replies.