Home / Forums / WoodMart support forum / Request to Change Article Titles to H2 on Blog Archive Page
Home › Forums › WoodMart support forum › Request to Change Article Titles to H2 on Blog Archive Page
Request to Change Article Titles to H2 on Blog Archive Page
- This topic has 9 replies, 2 voices, and was last updated 1 year, 8 months ago by
Luke Nielsen.
-
AuthorPosts
-
November 25, 2024 at 1:31 pm #615526
VanessaParticipantGood morning,
I hope you’re doing well. On the blog archive page, the article titles are currently displayed in H3. I would like them to be changed to H2 for better structure and SEO optimization.
Thank you in advance for your help!
Best regards,
VanessaAttachments:
You must be logged in to view attached files.November 25, 2024 at 4:19 pm #615638
Luke NielsenMemberHello,
Could you please check how it works with some default WordPress themes like WooCommerce Storefront or 2025 theme to understand if it is our theme issue or not?
Kind regards
November 25, 2024 at 4:30 pm #615649
VanessaParticipantHi,
I controlled : with WooCommerce Storefront this titles are H2.
It defenitly comes from WoodMart css.
.wd-post-entry-meta ?
.wd-entities-title title post-title ?
Best regards,
VanessaNovember 25, 2024 at 4:35 pm #615659
Luke NielsenMemberHello,
If you want to change it, you need to go to file
inc/template-tags/template-tags.phpthere is a function starting on string 923 calledwoodmart_page_title, which needs to be copied to the child theme functions.php file.In that function on string 1152 (https://monosnap.com/file/8ePKcMhMkk5b3yYuWtC5SGLnCdcwnN) you can change the h3 tag to the desired one.
Kind Regards.
November 25, 2024 at 5:22 pm #615678
VanessaParticipantok… I tryed…. and there is a message error….
November 25, 2024 at 6:00 pm #615696
Luke NielsenMemberHello,
Send access to the admin panel so I can look closer at that issue.
Thank you in advance.
Kind Regards
November 25, 2024 at 6:21 pm #615712
VanessaParticipantWonderfull ! Thanks you !
I have changed in inc/template-tags/template-tags.php to h2…. It is still h3 on the page….November 26, 2024 at 11:28 am #615951
Luke NielsenMemberHello,
It looks like the access is wrong – https://take.ms/sLjxdK, could you please update it?
Thank you in advance.
Kind Regards
November 26, 2024 at 1:36 pm #616031
VanessaParticipantGood morning,
Factually, i gave you a wrong acces.
Sorry ! Now it is ok !
Best regards,
VanessaNovember 26, 2024 at 6:09 pm #616209
Luke NielsenMemberHello,
Sorry for the mistake. Please navigate to the
woodmart/templates/content-default.phpfile and copy it with its path to the child theme then in the copied file change the tag.structure in the child theme – https://take.ms/yqrsZ
change the tag on the 113 line: https://take.ms/4SovW
Result – https://prnt.sc/_mvujzQ8coQH
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register