WordPress.org

Support

Support » Themes and Templates » [Resolved] the distance between the posts Ryu

[Resolved] the distance between the posts Ryu

  • Hi, My wordpress psychoterapianlpt.pl
    I don’t know how to change / remove (in the CSS editor), the distance between the main menu and the Articles and the distance between the posts because they are wide.
    Right now as it stands, there is some space and it just does not look/read nicely. Is there a way to correct that ?

    I will be grateful for your help…

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi keenonu, If you look at the css for .hentry you will notice lots of padding at the top and bottom of each article. You can fix it by adding this to your custom css:

    .hentry {
    padding: 30px 0 5px;
    }

    This will reduce the space on each article for the front page and the post pages.
    Let me know if this works for you.

    Regards

    Ernest Close

    YES :)))) this works 🙂
    Thank you very much!

    Regards

    Kinga

    Always a pleasure.

    Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    Glad you found the solution!

    Just a heads-up that if you made this modification directly in the theme’s style.css file, the change will be overwritten the next time the theme is updated with a new version, so please be careful.

    A better way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

    Hi!

    How do I do the same thing on a page?

    Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    The code above should also apply to pages, since pages also use the .htentry class.

    If you tried it and it isn’t working, please provide a link to a page so I can take a look? Thanks.

    Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    p.s. in future please start a new thread as this one is already marked as resolved. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] the distance between the posts Ryu’ is closed to new replies.