Site logo

Archived topic

Want to add one line

7 replies · Started by Sunil on November 4, 2019

Viewing posts 1–8 of 8

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.

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.

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;
}

https://docs.generatepress.com/article/adding-css/

Thanks a lot :)

You're welcome

This archived topic is closed to new replies.