• Resolved Sahil Dadwal

    (@jack2020)


    I want to add background in my single post title.

    My site default single post heading title look like this : Screenshot

    I want Background and meta style like this : Link

    Site link : Link

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    I’m not exactly sure what background gradient value the screenshot it using but you can try this out.

    @media(max-width:768px){
    article.post .inside-article {
        background: linear-gradient(45deg, #724BB7 0%, #4098D7 100%);
        color: white;
    }
    .entry-title a, .entry-meta, .entry-meta a {
        color: white;
    }
    }

    As for the entry meta style, you can follow this guide: https://docs.generatepress.com/article/entry-meta-style/

    Thread Starter Sahil Dadwal

    (@jack2020)

    See Screenshot : Link

    I want Background color in only title and meta not in whole article Background.

    Thread Starter Sahil Dadwal

    (@jack2020)

    Also background color added in front page of blog layout. So please help me how to remove it.

    Try this CSS:

    article.post .entry-header {
        background: linear-gradient(45deg, #724BB7 0%, #4098D7 100%);
        color: white;
        padding: 40px;
        margin-left: -40px;
        width: calc(100% + 80px);
        margin-right: -40px;
        margin-top: -40px;
    }
    @media(max-width: 768px) {
        article.post .entry-header {
            margin-left: -20px;
            margin-right: -20px;
            margin-top: -30px;
            width: calc(100% + 40px);
        }
    }
    Thread Starter Sahil Dadwal

    (@jack2020)

    sir i add this above css its work but i want to add in only single post not in front page article title background.

    screenshot

    Try this code.

    .single article.post .entry-header {
        background: linear-gradient(45deg, #724BB7 0%, #4098D7 100%);
        color: white;
        padding: 40px;
        margin-left: -40px;
        width: calc(100% + 80px);
        margin-right: -40px;
        margin-top: -40px;
    }
    @media(max-width: 768px) {
        .single article.post .entry-header {
            margin-left: -20px;
            margin-right: -20px;
            margin-top: -30px;
            width: calc(100% + 40px);
        }
    }
    Thread Starter Sahil Dadwal

    (@jack2020)

    thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Single post title background and meta style’ is closed to new replies.