Homepage has noindex
-
Hello,
After updating woo-commerce to latest, now I have a big issue with no indexing home page. Other pages seems to be fine.
I have checked if there is enabled indexing on yoast settings, yoast meta box on page and on main wp settings. Everything looks good.
But inspecting homepage source code noticed one woocommerce class is generating “noindex, follow” rules. Could it be a cause?
https://prntscr.com/jx6cvk
https://prntscr.com/jx6d9mThe page I need help with: [log in to see the link]
-
Hi @vytaskk,
Could this be coming from another plugin, in particular, the WPBakery Page Builder plugin? The screenshot makes it seem likely, at least we know there isn’t any indexing options within WooCommerce. Nonetheless, it’s definitely coming from something outside of WooCommerce.
thank you for the reply. Anyway wpbakery visual composer also does not have any options for index/noindex pages.
actually tried switching of visual composer and still get noindex meta tags
i have googled code which blocks woocommerce from creating “noindex”
add_action( ‘init’, ‘remove_wc_page_noindex’ );
function remove_wc_page_noindex(){
remove_action( ‘wp_head’, ‘wc_page_noindex’ );
}put ins in snippet or functions.php
But I think it switches off all “noindex” to woocommerce pages. So other pages you need to noindex manually
@vytaskk I believe there’s either a setting in your site that’s incorrect, or there is a plugin that is causing the home page to read as the account page. If you take a look at the code in the link below, it is what is called to display the
noindex
:
https://github.com/woocommerce/woocommerce/blob/3.4.3/includes/wc-template-functions.php#L3237-L3242It should only be displaying be displaying the
noindex
on the cart, checkout and my account pages. If you view the source of your home page, you can seewoocommerce-account
in the body class, which only appears if the page is part of the My Account page. Can you go to WooCommerce > Status and copy/paste the System Status Report here for us?thanks for your reply.
Here is the status information:
### WordPress Environment ### Home URL: https://popierine.lt Site URL: https://popierine.lt WC Version: 3.4.3 Log Directory Writable: ? WP Version: 4.9.6 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: lt_LT External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.0.11 - We recommend using PHP version 7.2 or above for greater performance and security. Kaip atnaujinti savo PHP versij? PHP Post Max Size: 10 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.19.7 NSS/3.27.1 SUHOSIN Installed: – MySQL Version: ? 5.5.54 - rekomenduojame 5.6 MySQL versija. ?r.: WordPress reikalavimai Max Upload Size: 10 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.4.2 WC Database Prefix: wp_ Bendras duomen? baz?s dydis: 57.43MB Duomen? baz?s duomen? dydis: 42.80MB Duomen? baz?s indekso dydis: 14.63MB wp_woocommerce_sessions: Data: 2.02MB + Index: 0.02MB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB wp_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB wp_woocommerce_order_itemmeta: Data: 0.30MB + Index: 0.30MB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB wpstg0_callbacks_mistertango: Data: 0.02MB + Index: 0.00MB wpstg0_commentmeta: Data: 0.02MB + Index: 0.03MB wpstg0_comments: Data: 0.25MB + Index: 0.28MB wpstg0_duplicator_packages: Data: 0.02MB + Index: 0.02MB wpstg0_links: Data: 0.02MB + Index: 0.02MB wpstg0_options: Data: 3.42MB + Index: 0.09MB wpstg0_postmeta: Data: 5.52MB + Index: 5.03MB wpstg0_posts: Data: 8.48MB + Index: 0.63MB wpstg0_revslider_css: Data: 0.13MB + Index: 0.00MB wpstg0_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB wpstg0_revslider_navigations: Data: 0.02MB + Index: 0.00MB wpstg0_revslider_sliders: Data: 0.02MB + Index: 0.00MB wpstg0_revslider_slides: Data: 0.03MB + Index: 0.00MB wpstg0_revslider_static_slides: Data: 0.02MB + Index: 0.00MB wpstg0_snippets: Data: 0.02MB + Index: 0.00MB wpstg0_termmeta: Data: 0.02MB + Index: 0.03MB wpstg0_terms: Data: 0.02MB + Index: 0.03MB wpstg0_term_relationships: Data: 0.05MB + Index: 0.02MB wpstg0_term_taxonomy: Data: 0.02MB + Index: 0.03MB wpstg0_transactions_mistertango: Data: 0.02MB + Index: 0.00MB wpstg0_usermeta: Data: 0.16MB + Index: 0.16MB wpstg0_users: Data: 0.02MB + Index: 0.05MB wpstg0_wc_download_log: Data: 0.02MB + Index: 0.03MB wpstg0_wc_webhooks: Data: 0.02MB + Index: 0.02MB wpstg0_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB wpstg0_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB wpstg0_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB wpstg0_woocommerce_log: Data: 0.02MB + Index: 0.02MB wpstg0_woocommerce_order_itemmeta: Data: 0.28MB + Index: 0.30MB wpstg0_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB wpstg0_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB wpstg0_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB wpstg0_woocommerce_sessions: Data: 1.52MB + Index: 0.02MB wpstg0_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wpstg0_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB wpstg0_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB wpstg0_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB wpstg0_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB wpstg0_yith_wcwl: Data: 0.02MB + Index: 0.02MB wpstg0_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB wpstg0_yoast_seo_links: Data: 0.02MB + Index: 0.02MB wpstg0_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB wp_callbacks_mistertango: Data: 0.02MB + Index: 0.00MB wp_commentmeta: Data: 0.02MB + Index: 0.03MB wp_comments: Data: 0.25MB + Index: 0.28MB wp_duplicator_packages: Data: 0.02MB + Index: 0.02MB wp_links: Data: 0.02MB + Index: 0.02MB wp_options: Data: 4.05MB + Index: 0.11MB wp_postmeta: Data: 7.11MB + Index: 5.38MB wp_posts: Data: 7.48MB + Index: 0.47MB wp_revslider_css: Data: 0.13MB + Index: 0.00MB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB wp_revslider_slides: Data: 0.03MB + Index: 0.00MB wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB wp_snippets: Data: 0.02MB + Index: 0.00MB wp_termmeta: Data: 0.02MB + Index: 0.03MB wp_terms: Data: 0.02MB + Index: 0.03MB wp_term_relationships: Data: 0.02MB + Index: 0.02MB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB wp_transactions_mistertango: Data: 0.02MB + Index: 0.00MB wp_usermeta: Data: 0.17MB + Index: 0.16MB wp_users: Data: 0.02MB + Index: 0.05MB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB ### Post Type Counts ### attachment: 998 countdown: 1 customize_changeset: 2 nav_menu_item: 35 page: 12 post: 6 product: 171 product_variation: 250 revision: 704 shop_coupon: 1 shop_order: 276 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Jūs? parduotuv? nenaudoja HTTPS.Su?inokite daugiau apie HTTPS ir SSL sertifikatus. Hide errors from visitors: ? ### Active Plugins (28) ### WP Hide & Security Enhancer: prid?jo Nsp Code – 1.4.9.1 Akismet Anti-Spam: prid?jo Automattic – 4.0.8 Autoptimize: prid?jo Frank Goossens (futtta) – 2.3.4 BackWPup: prid?jo Inpsyde GmbH – 3.6.0 Code Snippets: prid?jo Shea Bunge – 2.10.1.1 Contact Form 7: prid?jo Takayuki Miyoshi – 5.0.2 Custom Facebook Feed: prid?jo Smash Balloon – 2.7 Duplicator: prid?jo Snap Creek – 1.2.40 Easy Watermark: prid?jo Wojtek Sza?kiewicz – 0.6.0 Edit Author Slug: prid?jo Brandon Allen – 1.5.2 Envato WordPress Toolkit (Deprecated): prid?jo Envato – 1.8.0 Google Analytics: prid?jo ShareThis – 2.1.4 Handmade Framework: prid?jo g5plus – 1.0 "Hello Dolly": prid?jo Matt Mullenweg – 1.6 Insert Headers and Footers: prid?jo WPBeginner – 1.4.3 WPBakery Page Builder: prid?jo Michael M - WPBakery.com – 5.5 Loco Translate: prid?jo Tim Whitlock – 2.1.4 Slider Revolution: prid?jo ThemePunch – 5.1.4 ShortPixel Image Optimizer: prid?jo ShortPixel – 4.11.0 Woo Additional Terms: prid?jo MyPreview – 1.1.0 Woo Checkout Field Editor Pro: prid?jo ThemeHiGH – 1.2.7 WooCommerce Payment Gateway - Paysera: prid?jo Paysera – 2.4.8 – Netestuota su ?jungta WooCommerce versija WooCommerce: prid?jo Automattic – 3.4.3 Yoast SEO: prid?jo Team Yoast – 7.6.1 WP Mail SMTP: prid?jo WPForms – 1.2.5 WP Staging: prid?jo WP-Staging – 2.2.9 WP Super Cache: prid?jo Automattic – 1.6.2 WP User Avatar: prid?jo flippercode – 2.1.1 ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) ### WC Pages ### Parduotuv?s baz?: #1571 - /parduotuve/ Krep?elis: #1572 - /cart/ Apmok?jimas: #1573 - /checkout/ Paskyra: ? Puslapyje n?ra shortcode'o: [woocommerce_my_account] Pirkimo taisykl?s ir s?lygos: ? Puslapis nenustatytas ### Theme ### Name: HandMade Version: 2.8 Author URL: https://g5plus.net/ Child Theme: ? – Jei kei?iate WooCommerce veikim? per t?vin? tem? kurios kūr?jas nesate Jūs pats rekomenduojame naudoti potemes. Daugiau infomacijos: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: handmade/woocommerce/archive-product.php: versija 2.0.0 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/cart/cart-shipping.php: versija 2.5.0 yra pasenusi. Naudojama versija yra 3.2.0 handmade/woocommerce/cart/cart-totals.php handmade/woocommerce/cart/cart.php: versija 2.3.8 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/cart/cross-sells.php: versija 1.6.4 yra pasenusi. Naudojama versija yra 3.0.0 handmade/woocommerce/cart/mini-cart.php: versija 2.5.0 yra pasenusi. Naudojama versija yra 3.3.0 handmade/woocommerce/cart/shipping-calculator.php: versija 2.0.8 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/checkout/form-coupon.php: versija 2.2 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/checkout/form-login.php: versija 2.0.0 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/checkout/payment-method.php handmade/woocommerce/content-product.php: versija 2.6.1 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/content-product_cat.php handmade/woocommerce/content-single-product.php: versija 1.6.4 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/global/quantity-input.php: versija 2.5.0 yra pasenusi. Naudojama versija yra 3.4.0 handmade/woocommerce/loop/add-to-cart.php: versija 2.5.0 yra pasenusi. Naudojama versija yra 3.3.0 handmade/woocommerce/loop/loop-end.php handmade/woocommerce/loop/loop-start.php: versija 2.0.0 yra pasenusi. Naudojama versija yra 3.3.0 handmade/woocommerce/loop/pagination.php: versija 2.2.2 yra pasenusi. Naudojama versija yra 3.3.1 handmade/woocommerce/loop/sale-flash.php handmade/woocommerce/product-searchform.php: versija 2.5.0 yra pasenusi. Naudojama versija yra 3.3.0 handmade/woocommerce/single-product/meta.php: versija 1.6.4 yra pasenusi. Naudojama versija yra 3.0.0 handmade/woocommerce/single-product/product-image.php: versija 2.6.3 yra pasenusi. Naudojama versija yra 3.3.2 handmade/woocommerce/single-product/rating.php: versija 2.3.2 yra pasenusi. Naudojama versija yra 3.1.0 handmade/woocommerce/single-product/related.php: versija 1.6.4 yra pasenusi. Naudojama versija yra 3.0.0 handmade/woocommerce/single-product/sale-flash.php handmade/woocommerce/single-product/short-description.php: versija 1.6.4 yra pasenusi. Naudojama versija yra 3.3.0 handmade/woocommerce/single-product/title.php handmade/woocommerce/single-product/up-sells.php: versija 1.6.4 yra pasenusi. Naudojama versija yra 3.0.0 handmade/woocommerce/single-product.php Outdated Templates: ? Su?inokite kaip atnaujinti pasenusius ?ablonus
That report says you are missing an account page being set and if there is one set it’s missing the shortcode to make it function.
Can you try setting an account page in your WooCommerce settings under the Advanced tab.
Link to image: https://cld.wthms.co/WxyyziWe haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
- The topic ‘Homepage has noindex’ is closed to new replies.