[Resolved] Want to add one line

Home Forums Support [Resolved] Want to add one line

Home Forums Support Want to add one line

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1053475
    Sunil

    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.

    #1053481
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1053485
    Sunil

    No its not working.
    I want to add this piece of line just before title of the each post/pages of the website.

    #1053691
    David
    Staff
    Customer Support

    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.

    #1071782
    Sunil

    It’s Working πŸ™‚
    I want this in the center.
    Please check: https://finalscope.com/

    #1072292
    David
    Staff
    Customer Support

    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/

    #1073355
    Sunil

    Thanks a lot πŸ™‚

    #1075089
    David
    Staff
    Customer Support

    You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.