Skip to main content

Posts

Showing posts from September, 2021

Schema কি? (What is schema?)

How to fix search console coverage error for Cart, My Account, and Checkout

  Woocommerce adds a noindex tags to certain pages. For that we receive some error on search console. Yoast try add all page for indexing where woocommerce adds noindex that's the conflict we need to resolve. One way to remove this is not set those file as index but I don't recommended because we should not index cart, my account, checkout etc. better approach is to add some code to function.php The following code snippet should help remove Cart, My Account, and Checkout  for you: if ( ! function_exists( 'wd_remove_woo_pages_from_yoast_sitemap' ) ) { /** * If Woocommerce and Yoast are enabled, we need to prevent Yoast from showing My Account, Checkout, and Cart in the sitemap * * @param $exclusions_array * @author Nick Jeffers @ Websites Depot Inc * @since * @return array */ function wd_remove_woo_pages_from_yoast_sitemap( $exclusions_array ) { // make sure Woocommerce is enabled if ( function_exists( 'wooc