Site logo

[Resolved] Add missing link text to 2 internal links

Home Forums Support [Resolved] Add missing link text to 2 internal links

Home Forums Support Add missing link text to 2 internal links

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #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
    Craig

    #2415712
    Leo
    Staff
    Customer Support

    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?

    #2514585
    Craig

    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&#8221; 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

    #2514633
    Ying
    Staff
    Customer Support

    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?

    #2514638
    Craig

    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

    #2514661
    Ying
    Staff
    Customer Support

    Hum, still not seeing it:
    https://www.screencast.com/t/9ZmgaeUx33V

    What is the hook you are using?

    #2515089
    Craig

    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

    #2515092
    Craig

    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

    #2515096
    Craig

    How do I add a screenshot?

    #2515105
    Fernando
    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

    #2515122
    Craig

    Thx Fernando

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

    #2515403
    David
    Staff
    Customer Support

    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 ?

    #2515940
    Craig

    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…&#8230;..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…&#8230;..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

    #2516056
    Ying
    Staff
    Customer Support

    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?

    #2516106
    Craig

    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

Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.