Remove author name on sticky post

  • Author
    Posts
  • #133926

    leonazombie

    Hi, my name is on the front on the sticky post, is there any way I can remove it please?
    Many thanks!

    The blog I need help with is a-zofskulls.com.

    #133958

    lelandf
    Theme Author

    Sure, you can use this:

    body #masonry .sticky .byline { display: none; }

    Regards,
    Leland

    #133994

    leonazombie

    Thank you Leland. Either this code or the other one has conflicted with a code I have which center all the titles/names of posts. Can you provide one or have I done something wrong? I really appreciate your help.
    Many thanks
    Leona

    #133995

    leonazombie

    Sorry meant to supply code I’m using –

    h1, h2, h3, h4, h5, h6 {
    text-align: center;
    }

    The code you provided above worked great, thank you.

    #133996

    lelandf
    Theme Author

    Hi Leona,

    I peeked in your Custom CSS. I noticed the following code:

    h1, h2, h3, h4, h5, h6 {
        text-align: none center;
    }

    Can you remove the word “none” in there?

    Regards,
    Leland

    #134030

    leonazombie

    Hi Leland, I’m a bit confused now, my code already doesn’t have ‘none’ in it. Here’s what’s there –

    h1, h2, h3, h4, h5, h6 {
    text-align: center;
    }

    Thanks, Leona

    #134031

    lelandf
    Theme Author

    Hmm, for some reason the browser is interpreting that as the code: https://cloudup.com/cWNEKWWYlHy

    Could you paste the entire contents of your Custom CSS?

    I’m guessing there is a semicolon or bracket out of place.

    Regards,
    Leland

    #134038

    leonazombie

    Here’s my code

    .jp-carousel-titleanddesc {
    display: none !important;
    }

    .posted-on {
    display: none;
    }

    {
    display: none;
    }

    h1, h2, h3, h4, h5, h6 {
    text-align: center;
    }

    body #masonry .sticky .byline {
    display: none;
    }

    #134039

    lelandf
    Theme Author

    Ah, I see the issue.

    Can you delete the { display: none; } part seen between the /* Delete everything between this comment */ comments?

    .jp-carousel-titleanddesc {
    display: none !important;
    }
    
    .posted-on {
    display: none;
    }
    
    /* Delete everything between this comment */
    {
    display: none;
    }
    /* Delete everything between this comment */
    
    h1, h2, h3, h4, h5, h6 {
    text-align: center;
    }
    
    body #masonry .sticky .byline {
    display: none;
    }

    That part isn’t valid CSS because there is no selector, so I think the “none” is getting carried over and messing up the next bit of CSS (specifically, the text-align: center;) below.

    I think that is a relic related to this topic and I now realize I wasn’t clear in my instruction to “remove the .entry-date rule” which doesn’t just include the .entry-date selector but also the { display: none; } styles immediately after that.

    Sorry about that and hope that helps!

    Regards,
    Leland

    • This reply was modified 3 years by  lelandf.
    • This reply was modified 3 years by  lelandf.
    • This reply was modified 3 years by  lelandf.
    #134043

    leonazombie

    Fab! That’s centered the titles, thank you so much, you’re a great, helpful theme author. :)

    Now the site tagline doesn’t look right as it’s not underneath the site title name. And how do I get rid of the excerpt text on the sticky post or can I center it? Either way will do I just don’t want the excerpt off center. Do you want me to start a new post for these questions?
    Huge thanks!
    Leona

    #134044

    lelandf
    Theme Author

    thank you so much, you’re a great, helpful theme author. :)

    Thanks! No problem. Always happy to help.

    Now the site tagline doesn’t look right as it’s not underneath the site title name.

    Ah, that’s because the site title in enclosed in an “h1” tag, which are now all centered. We can move it back to the left like this:

    .site-title { text-align: left; }

    And how do I get rid of the excerpt text on the sticky post or can I center it?

    Remove it with this:

    body #masonry .sticky .entry-content { display: none; }

    Or center it with this:

    #masonry .sticky .entry-content { text-align: center; }

    Do you want me to start a new post for these questions?

    Whichever you prefer.

    As general guidance, if it’s a question you think other Owari users are likely to benefit from, it might be helpful to make distinct topics for each one so it’s easier for them to find by scanning through topic titles.

    If it’s more about site-specific Custom CSS, I think it’s fine to continue posting here.

    Regards,
    Leland

    #134045

    leonazombie

    Almost perfect! I think it would look better if the site name and the site tagline are both centered. Please can I have a code for that – to makes them both centered. Again many thanks Leland.

    #134046

    lelandf
    Theme Author

    Sure thing.

    Try this:

    .site-branding { text-align: center; }

    #134071

    leonazombie

    Many thanks again. I think we’re there at last…..I’m pretty sure I won’t bother you again : ) You’ve been a great help and I appreciate your time.
    Take care
    Leona

    #134087

    lelandf
    Theme Author

    You’re very welcome! If you do have any further questions, feel free to let me know and I’ll see what I can do to help.

    Regards,
    Leland

    • This reply was modified 3 years by  lelandf.

The topic ‘Remove author name on sticky post’ is closed to new replies.