[Resolved] Can I do that in Generatepress?

Home Forums Support [Resolved] Can I do that in Generatepress?

Home Forums Support Can I do that in Generatepress?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1039770
    Dimitar

    Hello,

    you can see how on this website https://thecollegeinvestor.com/20309/find-best-student-loan-rates/ just below the H1 tag they have

    This article contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our Advertising Policy, visit this page.

    with a smaller font than the rest of the article.

    Can I do that on my website, I am using Generatepress with a valid license?

    #1039786
    Leo
    Staff
    Customer Support
    #1039789
    Dimitar

    Hello, thanks it does help.

    I have added it, I edited the first post so you can see my website.

    But how can I change the font size and also center the text, like the user in this topic has done – https://generatepress.com/forums/topic/adding-text-above-the-h1-heading-in-a-post/ you can see they have given a link to their website to see what I mean.

    #1039792
    Leo
    Staff
    Customer Support

    Edit your HTML to something like this:

    <div class="notice">
        The following guide containts link to Amazon. As an Amazon Associate I earn from qualifying purchases.
    </div>

    Then add some CSS.

    .notice {
        font-size: 20px;
        color: #000;
        text-align: center;
        margin-top: 20px;
    }
    #1039794
    Dimitar

    Okay, thanks. But the thing is I don’t know how to do that and I do not want to mess my website.

    Can you/the team do that for payment, or you do not offer services like that?

    #1039808
    Leo
    Staff
    Customer Support

    Is that the position you actually want the notice?

    If so you can actually just use the header element module:
    https://docs.generatepress.com/article/header-element-overview/
    https://docs.generatepress.com/article/how-to-create-a-page-hero/

    Then you won’t need any CSS.

    The hooks element is only needed if you want the notice below the title.

    Let me know πŸ™‚

    #1039820
    Dimitar

    Okay, I tried different positions and it seems below the title it looks better, so it seems I need the hook element.

    What I want is to increase the space just a bit between the title and the notice and to align the notice in the center and use a bit smaller font. You can see that the space now is a bit too little.

    I read your Adding CSS document and with the plugin that seems very easy.

    Just editing the HTML I cannot figure out, as when I click “Theme Editor” they are all PHP files.

    Sorry for having to deal with someone with that little knowledge of the backend of WordPress…

    #1039823
    Leo
    Staff
    Customer Support

    No need to edit the theme files.

    You can copy and paste the HTML into the hook content field:
    https://www.screencast.com/t/6mNIjGy8faQi

    Let me know πŸ™‚

    #1039833
    Dimitar

    It worked! Thanks so much, man. The only thing left is, is it possible to increase the space between the title and the notice just a bit?

    #1039834
    Leo
    Staff
    Customer Support
    #1039836
    Dimitar

    You are gold. I would like to send some money to you as a tip, is that possible?

    #1039837
    Leo
    Staff
    Customer Support

    Glad I could help πŸ™‚

    You can donate to our on-going development:
    https://generatepress.com/ongoing-development/

    We really appreciate your support!

    #1039840
    Dimitar

    I have sent some. Thanks again.

    #1039851
    Leo
    Staff
    Customer Support

    Thank you so much!!

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