Reduce space between post title and content

  • Author
    Posts
  • #76390

    Hello,
    first of all, thank you for this wonderful theme!
    Is there a way to reduce the space/padding between the post title and content? I checked the single.php file and tried to add different codes to the custom css section, for example:

    .entry-content {
    margin-top: 10px !important;
    }

    It should do the trick, but nothing worked and I can’t understand why.

    Website: lady-snowblood.net

    #76403

    Well, I tried pretty much everything today: looking into every php file, checking the style.css file, trying to set margin-top and margin-bottom to 0 for the single entry title, the entry content, the entry meta… no luck. I’m starting to think that blank space between the single post title and content is due to the header itself, but I have no idea where to find its value and how to change it. Any help would be appreciated.

    Website: lady-snowblood.net

    #76407

    Nevermind, I finally figured it out by myself. To anyone that’s looking for the same thing, I just added this code to the custom css:

    .single .main .article-inner > header {
    margin-bottom: 2.5em;
    }
    .page .main .article-inner > header {
    margin-bottom: 2.5em;
    }

    Just change the margin-bottom to what looks best for your site.
    Have a nice day!

    #76460
    Zed
    Cryout Creations mastermind

    I suggest using the browser’s development tools (normally available by pressing F12) to pinpoint which styling applies to which element (and even try changes) easier than guessing it from the code/styling files.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #76462

    Thanks! It’s true, that’s exactly how I figured it out. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Reduce space between post title and content’ is closed to new replies.