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
- This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by
Elise Noromit.
-
AuthorPosts
-
January 27, 2021 at 2:51 pm #261820
RomainLefParticipantDear 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
January 28, 2021 at 8:49 am #262005
Elise NoromitMemberHello,
Please clarify which H3 you want to change, please provide page URL and screens.
Best Regards
January 31, 2021 at 11:10 am #262755
RomainLefParticipantDear 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
February 1, 2021 at 9:45 am #262926
Elise NoromitMemberHello,
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
February 9, 2021 at 11:13 am #264996
RomainLefParticipantDear 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
February 9, 2021 at 10:36 pm #265156
Elise NoromitMemberHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register