Chuyển tiêu đề woocommerce chi tiết sản phẩm từ h2 thành h1 trong theme The7 để giúp chúng ta thiết lập SEO tốt hơn cho website của bạn.
You can set page titles to H1 for that go to the folder
Link : dt-the7/inc/mods/compatibility/woocommerce/front/mod-wc-template-functions.php
Line 845
if ( ! function_exists( 'dt_woocommerce_set_product_title_to_h2_filter' ) ) : /** * Wrap product title with h2 tag. * * There is h1 title on product page so we need to replace it with h2 here. * * @param string $title * @return string */ function dt_woocommerce_set_product_title_to_h2_filter( $title ) { return str_replace( array( '<h1', '</h1' ), array( '<h2', '</h2' ), $title ); } endif;
To
if ( ! function_exists( 'dt_woocommerce_set_product_title_to_h2_filter' ) ) : /** * Wrap product title with h2 tag. * * There is h1 title on product page so we need to replace it with h2 here. * * @param string $title * @return string */ function dt_woocommerce_set_product_title_to_h2_filter( $title ) { return ; } endif;
Nguồn : www.webvina.net
Bài liên quan
- Hướng dẫn ghi đè (override) folder INC trong child-theme Flatsome
- Hướng Dẫn Sử Dụng Plugin Duplicator WordPress Để Backup Và Restore Website
- Hướng Dẫn Quản Lý Bài Viết Trong Website WordPress
- Hướng Dẫn Quản Lý Trang Trong Website WordPress
- Hướng dẫn cách sửa lỗi link zalo.me/{sđt} trên website
- Cách Tạo Demo Website Mockup – giới thiệu trang tạo Demo Website Mockup