Hello!
I wanted to ask you a question, to see if you can help me. Currently in the different posts I’m doing, I’m using the “Subtitle” section since I need to use it and it appears under the post title and it goes well.
I would like for SEO to not penalize me, that the subtitle field was an H2, but that I do not change at all the current style that appears.
How could I make the subtitle with the H2 tag so that it does not penalize SEO and does not change the CSS style?
Hi,
By default the subtitle is a paragraph. I tried to change it to a h2 by editing the post template file the post is using in my case (template 1)- http://prntscr.com/njdf0q
The design seems to remain the same – http://prntscr.com/njdfcy because the CSS applies to the class not the HTML tag.
This can’t be done by a theme setting, only by modifying the post template files. After the 9.7 update they are located in the tagDiv composer plugin – http://prntscr.com/njdg2j
Only the default post template remained in the theme folder – http://prntscr.com/njdgjw
So depending on the post template used, you could modify the files and make the subtitle be a h2 instead of a paragraph.
Let me know if you have more questions.
Thanks
Hi Simion C.,
First of all, thank you very much for having responded to my problem, I thank you very much. I have two doubts about it that I would like to know if you can help me with them:
1.- How can I find out which template I am using in the posts I am doing? I can not know which is the template that is being viewed …
2.- If I modify the templates files inside the td-composer plugin, in the future when there is an update of the plugin, will I lose the changes that I have made? Is there a solution in this regard?
Once again, thank you very much for attending to my request for support.
Greetings,
Alex
Hi,
1. There are a few ways. For example you can edit the post, then check which post template is used – http://prntscr.com/njw3e7
If you need help, provide some links to some pages on your website, so I can take a look.
2. They will be lost unfortunately. With older theme versions it would have been possible to do it in a child theme, which is more update proof. But now after the 9.7 update the post template files (except the default post template that can still be modified in a child theme) are in the composer plugin so a child theme won’t work for them.
This current functionality may change in the future, to allow safer and more reliable customization of the theme files. I can’t say for sure what will happen.
Thanks