Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #993135

    Hello support,
    I run a woocommerce shop with the enfold theme. google webmasertools reports an error for all shop items: “missing: name”. I have spent hours now to search the error, unfortunately without success. does any of you have a solution to the problem?
    Thanks for any hint.

    Best regards,
    Markus

    #993207

    Hey lackformkleber,

    I tested your website (product page https://www.lackformkleber.de/smart-repair-lackreparatur/audi-lx7m-nanograu/ ) with the structured data test tool from Google: https://search.google.com/structured-data/testing-tool?hl=de#url=https%3A%2F%2Fwww.lackformkleber.de%2Fsmart-repair-lackreparatur%2Faudi-lx7m-nanograu%2F and it didn’t report errors. The homepage: https://search.google.com/structured-data/testing-tool?hl=de#url=https%3A%2F%2Fwww.lackformkleber.de%2F also seems to be valid. Please provide a link to a page where we can see the error(s).

    Best regards,
    Dude

    #993213

    Hey Dude, thanks for your message. Can it be that the webmaster tools show me outdated warnings? I tested a few days ago with the livetool we got errors displayed. Here in the forum I found the following code for the functions.php:

    `add_filter(‘avf_markup_helper_attributes’, ‘avf_markup_helper_attributes_modified’, 10, 2);
    function avf_markup_helper_attributes_modified($attributes, $args) {
    if($args[‘context’] == ‘image’) {
    $attributes[‘itemprop’] = ‘image’;
    }
    return $attributes;
    }
    After that I tested it again with the livetool there were no errors displayed. In the webmaster tool, however, Error: Missing Name is still displayed.
    I have read that the product name is expected, and apparently it is missing or not provided by the theme. The tool for testing the lived data can therefore indicate something else.

    Best Regards,
    Markus

    #993233

    Update: The error messages only appear for the data type “webpage”.
    The test tool does not show any errors in the livepreview. If I open the test tool “webpage” then the key “name” should be listed there. that is not the case and probably the reason for the error message. that would have to be solved with php?

    Best regards,
    Markus

    #993658

    Hi,

    This is not a theme issue but you can replace the default woocommerce template with a child theme. Download this file https://raw.githubusercontent.com/woocommerce/woocommerce/master/templates/single-product/title.php and save it as title.php. Then open up the file, replace:

    
    the_title( '<h1 class="product_title entry-title">', '</h1>' );
    

    with

    
    the_title( '<h1 class="product_title entry-title" itemprop="headline name">', '</h1>');
    

    save the file and upload it to the child theme folder (folder must be wp-content/themes/enfold-child/woocommerce/templates/single-product/).

    Best regards,
    Dude

    #993665

    Hi Dude,
    thank you very much for the help.
    I took everything as you described it. Now I have to wait until Google re-crawls the page.
    Is this a bug in woocommerce, or why is this “bug” coming about?

    Praise for this forum, your help is great. THANK YOU!
    You are doing a really good job.

    Best regards,
    Markus

    #993668

    Hi,

    This is not really a bug because woocommerce does not use the schema.org markup anymore but a new format to structured product data called JSON/LD. Thus they can remove the schema.org markup from the title without affecting seo or crawling of the website. However if you want to use both markups for products you need to add it manually again ;)

    Best regards,
    Dude

    #998553

    Hi support,
    sorry, but I have to call this thread again.
    I probably did not describe the problem exactly. When I call Google Webmaster Tools / Structured Data, elements with errors are called under the Webpage data type. If i open this menu item to display the errors,i see under “Site-url” the links to my products. Elements with errors. No breadcrumbs. Error is “missing: name.” The test of the live data shows me no mistake, but that the field “name.” probably not passed correctly, as Google expected.
    I’ve spent many hours with debugging – without any success. As I said, the error comes only with “Webpage”.
    I have stored several screen shots as private content. I hope you see the problem then.
    Thank you in advance for any help.

    Best regards,
    Markus

    #998883

    * push *

    #998920

    Hi,

    Unfortunately I also don’t see any reasons why these errors pop up and I can’t offer you a “fix” at the moment. Your last screenshot: https://www.dropbox.com/s/sy9qloh5smyua2x/web3.PNG?dl=0 doesn’t show any errors too. The schema.org structure seems to be valid and I can’t reproduce these errors with the test tool. I also can’t reproduce this issue on my websites. Personally I thinks it’s a false positive and I’d simply ignore it.

    If you really want to get rid of the errors you could try to deactivate the schema.org markup in the theme option panel (Enfold > Theme Options >Layout Builder > “Automated Schema.org HTML Markup” setting) – then the theme won’t add any markup. You could then try to install third party plugins to add some markup to the source code but I doubt this will give you better results.

    Best regards,
    Dude

    #998924

    Hi Peter,
    Danke für Deine Nachricht. Ich vermute den “Fehler” auch eher bei Goggle, der wahrscheinlich gar keiner ist. Ich folge Deiner Empfehlung und ignoriere erstmal was Google da zu meckern hat.
    Herzlichen Dank für Deine Hilfe. :)

    Beste Grüße
    Markus

    #998937

    Hi,

    Kein Problem. Ich lasse den Thread offen, falls es zu diesem Thema neue Entwicklungen geben sollte.

    LG,
    Dude

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