Archived topic
How to put div.notice below title tag
5 replies · Started by Chris on December 23, 2019
I linked to the website that has the code.
I'm wondering how do you add this line: http://prntscr.com/qepecd below title as div.notice tag. And is it possible to make it default for all blog posts?
Hi there,
you can use a Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
You will probably want the after_entry_title hook
Great, what do I put in the code line: http://prntscr.com/qepzzr
The HTML you want to display eg.
<div class="amz-disclaimer">*Your Disclaimer text here</div>
After that you can style it with some CSS like so:
.amz-disclaimer {
text-align: center;
font-style: italic;
font-size: 14px;
}
Sweet, thank you!
You're welcome