Home Forums WoodMart support forum Prevent elements from header and footer being tagged as if they were titles

Prevent elements from header and footer being tagged as if they were titles

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261820

    RomainLef
    Participant

    Dear Xtemos support,

    I wanted to contact you because it seems on one of my website the basket widget displayed in the header is considered as being a <h3>, while on a second website I have also WoodMart running on, elements from the footer are tagged as headers (and more specifically <h5>). Therefore, I wanted to ask you whether you would know a line of code I could benefit from to transform texts in the header and footer into simple paragraphs, so Google can better read my pages.

    Thanking you for your attention,

    I wish you a very nice day.

    Best regards,

    Romain

    #262005

    Hello,

    Please clarify which H3 you want to change, please provide page URL and screens.

    Best Regards

    #262755

    RomainLef
    Participant

    Dear Elise,

    Thank you for your prompt answer. I have attached in the private content section two websites. In website 1, you will see that titles in the footers are in <h3>, while in website 2, it is the shop basket that is in <h3>.

    Thank you so much for your attention.

    I wish you a very nice day.

    Best regards,

    Romain

    #262926

    Hello,

    The first site has h5 titles already http://prntscr.com/xyiwq7

    In order to change the titles on the second site, add this code to the functions.php of the child theme:

    function woodmart_cart_side_widget() {
    		if ( ! whb_is_side_cart() || ! woodmart_woocommerce_installed() ) return;
    		?>
    			<div class="cart-widget-side">
    				<div class="widget-heading">
    					<h5 class="widget-title"><?php esc_html_e( 'Shopping cart', 'woodmart' ); ?></h5>
    					<a href="#" class="close-side-widget wd-cross-button wd-with-text-left"><?php esc_html_e( 'close', 'woodmart' ); ?></a>
    				</div>
    				<?php the_widget( 'WC_Widget_Cart', 'title=' ); ?>
    			</div>
    		<?php
    	}
    	add_action( 'wp_footer', 'woodmart_cart_side_widget', 140 );

    Best Regards

    #264996

    RomainLef
    Participant

    Dear Elise,

    Thanks a lot for your prompt answer. I will add the lines of code you sent me to remove the basket in my menu from <h> tags, thank you. However, on another website, I would also like to remove the titles of the sections composing my footer, as shown in the image I sent you in the Private Content field. May I please ask you how to remove such titles that are tagged as <h5> and put them into simple <p> to avoid Google reading them as if they were titles from the body section? The address of the corresponding website is also given in the screenshot I attached below. I would understand what I am asking could go a bit be beyond the scope of the support provided here. I would still feel grateful for any help if you have the time to do so.

    Thanking you in advance for your attention, I wish you a very nice day.

    Best regards,

    Romain

    #265156

    Hello,

    You can create HTML block for the footer and use the Custom Heading element from WP bakery page builder, which has the drop-down allowing to set any H.

    Best Regards

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