Archived topic
Want to add one line
7 replies · Started by Sunil on November 4, 2019
Hi,
I want to add one line in top of the all post in my website.
how i can add this>
The line is below
Finalscope is reader-supported. When you buy through links on our site, we may earn an affiliate commission.
Hi there,
Where exactly do you want to add it?
If it's at the very top of the page/post, you can use the top bar widget area:
https://docs.generatepress.com/article/top-bar-widget-area/
Otherwise one of the hooks should work:
https://docs.generatepress.com/article/hooks-element-overview/
https://docs.generatepress.com/article/hooks-visual-guide/
Let me know if this helps :)
No its not working.
I want to add this piece of line just before title of the each post/pages of the website.
Hi there,
Make sure you have the Elements module enabled in Appearance > GeneratePress.
Then go to Appearance > Elements --> Add New > Hook.
Add your text into the content area.
Select the required hook for positioning from the list - you can see them all here:
https://docs.generatepress.com/article/hooks-visual-guide/#posts-page
I would suggest the before_content hook
For the Display rules set it to Posts > All Posts.
It's Working :)
I want this in the center.
Please check: https://finalscope.com/
Use this for your HTML in the hook element:
<p class="disclaimer-notice">My disclaimer notice</p>
Then add this CSS:
.disclaimer-notice {
font-size: 13px;
background-color: #AED6F1;
padding: 5px 0;
text-align: center;
}
Thanks a lot :)
You're welcome