Home Forums WoodMart support forum shopping cart h tag change

shopping cart h tag change

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43207

    lavitasarim
    Participant

    The “shopping cart” title tag turns out to be h3 in analysis. How can I change this? If you tell me clearly, I can not ask again and I can do it myself.

    Previously, Header.php changed. But not now.

    Thank you.

    #43215

    Artem Temos
    Keymaster

    Hi,

    Add this code snippet to the child theme functions.php and change th Heading tag

    	function woodmart_cart_side_widget() {
    		if( ! whb_is_side_cart() ) return;
    		?>
    			<div class="cart-widget-side">
    				<div class="widget-heading">
    					<h3 class="widget-title"><?php esc_html_e('Shopping cart', 'woodmart'); ?></h3>
    					<a href="#" class="widget-close"><?php esc_html_e('close', 'woodmart'); ?></a>
    				</div>
    				<div class="widget woocommerce widget_shopping_cart"><div class="widget_shopping_cart_content"></div></div>
    			</div>
    		<?php
    	}
    
    	add_action( 'wp_footer', 'woodmart_cart_side_widget', 140 );

    Regards

    #43220

    lavitasarim
    Participant

    What file did you get this code from?

    Thanks.

    #43225

    Artem Temos
    Keymaster

    From inc/template-tags.php.

Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)