• Zur Hauptnavigation springen
  • Skip to main content
  • Zur Hauptsidebar springen
  • Zur Fußzeile springen
Logo

CITROWEB Webdesign

Erste Wahl für Ihren Onlineauftritt

  • Home
  • Leistungen
    • Webdesign, Webentwicklung und Beratung
    • Online-Shops mit WooCommerce
    • Technische Unterstützung für WooCommerce-Shops
    • Suchmaschinenmarketing
      • SEO: Ihr Webauftritt erhält mehr relevante Besucher
      • SEA: Suchmaschinenwerbung für Ihren Webauftritt
    • Webhosting
  • Blog
  • Kontakt aufnehmen
Home » Blog » Solution for Google Search Console – Warning: “brand” field is missing

Solution for Google Search Console – Warning: „brand“ field is missing

22. Dezember 2021

Field "brand" missing

If you run a store with WooCommerce, you have surely already discovered the adjacent message in Google Search Console under Improvements -> Products.

Standardmäßig fügt das WooCommerce-Plugin für WordPress das „Brand“-Schema nicht zu WooCommerce Produktseiten hinzu. Das bedeutet, dass es eine Lücke im WooCommerce-Schema gibt.

On various support threads on WordPress.org and Github it says this can be solved by purchasing a WooCommerce plugin. With something as basic as this, you can rightly get very frustrated.

Ultimately, WooCommerce’s justification is that these are not essential parts of Schema – they only generate warnings in Google Search Console, but not errors. So, theoretically, they are not a big deal.

However, if you want to close this gap, you have several options. There are „scheme plugins“ that will help you patch this up – the Yoast SEO WooCommerce plugin fills in the gaps for you – but it’s a bit overkill to spend around 70 euros a year on it. Unless you have or need it for some other important reason. Then this guide will help.

Many people avoid code-based solutions because they need to be „maintained“ and break regularly. So for an e-commerce website that you make money with, that’s not so great!

Code to fix Google Search Console – warning for „brand“ field

The Code Snippets plugin allows you to integrate small code snippets like the following into the page. Professionals have a separate plugin for such customizations or use the functions.php of their theme.

/*
* Füge "Brand"-Schema in die Strukturierten Daten ein
*/
function custom_woocommerce_structured_data_product ($data) {
	global $product;
	$data['brand'] = ['@type' => 'Brand', 'name' => 'Meine Marke'];
	return $data;
}
add_filter( 'woocommerce_structured_data_product', 'custom_woocommerce_structured_data_product' );

If you are the manufacturer of your products or if you only carry goods of one brand, you can insert your brand here instead of„My brand“ (quotation marks must remain).

Alternatively, the brand can be read from the brand property using $product->get_attribute(‚pa_brand‘).

The code snippet would look like this:

/*
* Füge "Brand"-Schema in die Strukturierten Daten ein
*/
function custom_woocommerce_structured_data_product ($data) {
	global $product;
        $data['brand'] = ['@type' => 'Brand', 'name' => $product->get_attribute('pa_brand') ?? null];
	return $data;
}
add_filter( 'woocommerce_structured_data_product', 'custom_woocommerce_structured_data_product' );

I use a product property Manufacturer with a customer. Therefore, I set the „Brand“ field with the manufacturer using the $product->get_attribute(‚pa_manufacturer‘) command.

To test success, use Google’s handy online tool: Test Structured Data.

Kategorie: Google Search Console, SEO, WooCommerce

Haupt-Sidebar

  • How to remove dashicons in WordPress frontend?
  • How do I create a website (homepage) with ChatGPT?
  • Can I create a website (homepage) with ChatGPT?
  • iOS restrictions re: bringing up the keyboard on programmatic focus
  • iOS restrictions re: bringing up the keyboard on programmatic focus
  • Remove user listing from WP-JSON
  • Benutzerauflistung aus WP-JSON entfernen
  • What does „Video is not the main content of the page“ mean?
  • Was hat es mit „Das Video ist nicht der Hauptinhalt der Seite“ auf sich?
  • Remove WordPress logo from toolbar
  • Efficient onboarding simplified: LearnSuite – the cloud application for digital onboarding
  • Wir stellen vor: LearnSuite – Die Cloudanwendung für digitales Onboarding
  • Howto: How do I create a website (homepage) with ChatGPT?
  • Howto: Wie erstelle ich mit ChatGPT eine Website (Homepage)?
  • Can I create a website (homepage) with ChatGPT?
  • Kann ich mit ChatGPT eine Website (Homepage) erstellen?
  • Set noindex nofollow via .htaccess HTTP header
  • Über .htaccess X-Robots-Tag noindex nofollow setzen
  • How to remove WordPress Dashicons in frontend?
  • Wie lassen sich Dashicons im WordPress-Frontend entfernen?
  • DSGVO (3)
  • GDPR (3)
  • Genesis Framework (10)
  • Genesis-Framework (9)
  • Google Search Console (4)
  • Google Search Console (4)
  • Linux (3)
  • Linux (3)
  • mobile (3)
  • Mobile (3)
  • Network (1)
  • Netzwerk (1)
  • SEO (5)
  • SEO (5)
  • Trends (3)
  • Trends (4)
  • Uncategorized (3)
  • Web development (1)
  • Web hosting (1)
  • Webentwicklung (1)
  • Webhosting (1)
  • WooCommerce (9)
  • WooCommerce (9)
  • WordPress (23)
  • WordPress (24)

Footer

Logo




© 2026 CITROWEB
  • Datenschutz
  • Impressum