Home › Forums › WoodMart support forum › H1 – SEO purposes
H1 – SEO purposes
- This topic has 6 replies, 2 voices, and was last updated 5 years, 4 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
October 8, 2019 at 6:49 am #149010
davidmontanaParticipantHello guys,
I’d like to know how to add H1 titles to these pages for SEO purposes,thank you
October 8, 2019 at 11:51 am #149078
Aizaz Imtiaz AwanKeymasterHello,
As you want to add H1 titles for those page that you share in private content. Copy the file template-tags.php from wp-content\themes\woodmart\inc and paste it in the same directory inside the child theme.
Then go to line# 1019, you will see the below code:
<h1 class="entry-title"><?php woocommerce_page_title(); ?></h1>
Now if you want to add styles then you can add below styling in style.css:
.entry-title{ color: #999999; font-family: arial, sans-serif; font-size: 16px; font-weight: bold; margin-top: 0px; margin-bottom: 1px; }
OR
You can use the below css code in Theme Settings >> Custom Css>> Global Custom Css:
.page-title.color-scheme-light .entry-title { color: #999999; font-family: arial, sans-serif; font-size: 16px; font-weight: bold; margin-top: 0px; margin-bottom: 1px; }
Best Regards.
October 10, 2019 at 12:37 am #149358
davidmontanaParticipantThank you for the response
I added the php to the child theme and the CSS code but my question is:
how can I ADD the H1 title to these pages:
https://klay.com.au/results/
https://klay.com.au/product-tag/skb/Maybe should I add any code to the php file you mentioned, on the child theme?
Looking at your instructions I don’t get why did you mention“Then go to line# 1019, you will see the below code:”
The thing is there’s no H1 title in the above pages
Please let me knowThanks
October 10, 2019 at 4:47 am #149362
davidmontanaParticipantThank you for the response
I added the php to the child theme and the CSS code, it’s the same, nothing changedMaybe should I add any code to the php file you mentioned, on the child theme?
Looking at your instructions I don’t get why did you mention“Then go to line# 1019, you will see the below code:” I don’t see the reason why you asked me to copy the php file on the child theme if nothing was modified
The thing is there’s no H1 title in the above pages,
This support request is: how can I ADD the H1 title to these pages
https://klay.com.au/results/
https://klay.com.au/product-tag/skb/Please let me know
Thanks
October 10, 2019 at 5:53 am #149366
Aizaz Imtiaz AwanKeymasterMost Welcome,
No, you did not have to add any extra code in the file which I mentioned.
I mentioned that file because in my test site that file is responsible for the titles of those pages. That’s why I guide you to copy that file in the child version of theme and then apply styling.
Because if you do this in you parent theme then after the theme update you will lose your customization.
As you said that in your site there is no H1 title in those pages. From the pages which you shared it seems that you disable the title form the theme options.
Go to Theme Settings >> Shop >> SIDEBAR & PAGE TITLE and make sure that “Shop title” option is enabled as in the screenshot: https://jmp.sh/DGKgpRs
In case after enabling the above option if the title still not shown then share your login credentials so I can check and help you out.
Best Regards.
October 16, 2019 at 9:29 pm #150564
davidmontanaParticipantThank you guys
October 17, 2019 at 5:15 am #150582
Aizaz Imtiaz AwanKeymasterWell, davidmontana!.., it’s been great chatting with you! I hope I resolved your issues thoroughly.
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘H1 – SEO purposes’ is closed to new replies.
- You must be logged in to create new topics. Login / Register