Archived topic
Subtitle right underneath title
5 replies · Started by Mario on February 3, 2020
Hi, I would like to figure out how to implement a subtitle right underneath the main title. I tried to follow these instructions but it didn't work for me.
Not sure if I added the php in the wrong place or anything.
This is the site, location (all posts):
https://imdev.mystagingwebsite.com/2020/02/03/hello-world/
And for reference, this is what I am working towards.
https://ideamensch.com/mark-willingham/
Hi there,
David's solution in #1 should still work.
There is no PHP code required (that snippet is for question #2 in that topic).
It's not working as you are using a header element for posts.
In that case, you can actually just use a custom field for your subtitle and add it to the page hero:
https://docs.generatepress.com/article/header-element-template-tags/#custom_field-name
Let me know if this helps :)
Awesome. Is there a specific custom field name for a subtitle?
Nope. The name of the custom field can be whatever you want :)
Wow, I had no idea that was possible. It worked. Thank you so much.
No problem :)