Archived topic
Add content title to hook
5 replies · Started by Ethan on February 3, 2019
This feels like it should be so simple, but I just can't figure it out.
I am using a hook (after_header) to insert content after the header. I literally just want a band of color with the content title in the middle.
I've figured out (I think) how to put the band of color. But how do I insert the Content Title into this hook area?
Hi there,
Would header element work for you?
https://docs.generatepress.com/article/header-element-overview/
Then you can just use the template tags:
https://docs.generatepress.com/article/header-element-template-tags/
Let me know :)
Gah! Yes, thank you!
What is the best way to set styling for the font size in this area?
CSS is the only way.
So if this is the page hero content: <h1>{{post_title}}</h1>, then the CSS would be:
.page-hero h1 {
font-size: 25px;
}
Check out some examples here as well:
https://docs.generatepress.com/article/page-hero-examples/
Thank you!
No problem :)