top of page

Wordpress SEO 網店優化教學 Astra Theme - Woocommerce Loop Product Title H2 to H3

Astra Theme - Woocommerce Product Loop Template Title H2 to H3
Woocommerce Product Loop Template - SEO Title H2 to H3

以下教學可有助改善Wordpress SEO 網店排位,因為可以減除不必要的H2標題,可以將網頁的主題及標題有更好發揮及收錄效果。


The following instruction can improve the ranking of Wordpress SEO online stores, because unnecessary H2 titles can be changed to H3, and the theme and title of the webpage can be better utilized and included.

Astra Theme - Woocommerce Product Loop Template - SEO Title H2 to H3

路徑 / Path

[Theme Editor]

Astra: woocommerce-common-functions.php (inc/compatibility/woocommerce/woocommerce-common-functions.php)

移除行數, 大約行數 157-159 / Delete Line around 157 - 159


echo '<a href="' . esc_url( get_the_permalink() ) . '" class="ast-loop-product__link">';


echo '</a>';

新增編碼 / Add Code


add_action('woocommerce_shop_loop_item_title', 'astra_woo_shop_products_title', 10 );

function astra_woo_shop_products_title() {

echo '<h3 class="' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '">' . get_the_title() . '</h3>';


修改Woocommerce Loop Product Title好處

因為Woocommerce Loop Product會自動編定出每件產品的<h2>標題,這樣便會使搜尋引擎Google/Bing誤會此頁的重要位置,而且重複的重點標題不停出現在此網站,簡接影響收錄位置。

如果大家有興趣了解更多Wordpress SEO優化知識,都可以點擊前往。

Benefits of Modifying Woocommerce Loop Product Title

Because Woocommerce Loop Product default the <h2> title of each product, which will cause the search engine Google/Bing to misunderstand the important position of this page, and repeated key titles appear on this website, which will easily affect the indexing Location.

If you are interested in learning more about Wordpress Web Design, you can click here

如果有任何網頁設計 及 SEO HK優化服務,歡迎與我們千帆網頁設計查詢 / 查詢電話: 3481 2592 / WhatsApp: 61502871


  • Facebook Basic Square
  • Twitter Basic Square
bottom of page