[Resolved] Title width

Home Forums Support [Resolved] Title width

Home Forums Support Title width

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1585077
    Tomasz

    Hi,

    How can I make a title post (only) width the same as a post (content) width?
    I’m using the below element but I don’t know how to wrap up a title with html? In a mobile mode it’s OK but in desktop it’s too width – example provided.

    <h1 style=”color:#000000;” style=”text-align:center;”>{{post_title}}</h1>
    <h6 style=”font-size:12px;”>Support Title width</h6>

    Thank you,
    Tomasz

    #1585116
    Ying
    Staff
    Customer Support

    Hi Tomasz,

    Try the following steps:

    1. Remove the page hero for single post.

    2. Follow this article to add breadcrumb:
    https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-element
    Replace generate_before_entry_title with generate_after_entry_title in step 3 of the article.

    3. If you want the post titles centered, add this css:

    .single-post .entry-title {
        text-align: center;
    }

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

    Let me know 🙂

    #1588568
    Tomasz

    Hi Ying,

    It works.

    Thank you.
    Tomasz

    #1588635
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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