• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How do I create a line between posts (to separate them)

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How do I create a line between posts (to separate them)

This topic is: not resolved

Tagged: magazine theme

  • This topic has 7 replies, 5 voices, and was last updated 12 years, 2 months ago by TWF.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 12, 2013 at 9:04 pm #35157
    laura
    Member

    Hi

    I have the Magazine child theme and I am trying to draw a line between two posts (to separate them).

    Could anyone point me in the right direction?

    Cheers

    Laura

    April 12, 2013 at 9:14 pm #35161
    Brad Dalton
    Participant

    Can you link to your site please Laura.


    Tutorials for StudioPress Themes.

    April 12, 2013 at 9:17 pm #35162
    laura
    Member

    My site is Mom Goes Online

    PS - I don't have two posts yet, but the Lifestyle theme blog page template has something similar to what I am looking to do

    April 12, 2013 at 9:51 pm #35169
    bill scheider
    Member

    Hi Laura,

    In your style.css, on line 792 of your style sheet, you'll see:

    .post {
    margin: 0 0 40px;
    padding: 10px; <----- Add this (play with padding to get what you want)
    border-bottom: 2px solid #f5f5f5; <---- Add this (play to get border width and color you want)
    }

    HTH
    Bill

    April 12, 2013 at 10:37 pm #35178
    TWF
    Member

    or in functions.php

    function add_line_after_post(){
    echo "<hr />";
    }
    add_action( 'genesis_after_post_content', 'add_line_after_post' );

    and style your css <hr>

    hr {border:0;  box-shadow: 0 2px 3px #333333; }


    French Designer WordPress themes and plugins.
    Concepteur de Thèmes et d’extension WordPress.

    April 13, 2013 at 2:20 pm #35250
    laura
    Member

    @bill and @TWF

    I added a line using hte css code bill provided, and it worked! Thank you!

    The line is too long though, and I would like to shorten it to the same length as the box around the title (you can see it on my site: Mom Goes Online (since I seem to have been adding links incorrectly, the site is http://www.momgoesonline.com).

     


    @TWF
    : Vous êtes français?

    April 13, 2013 at 2:27 pm #35251
    wmwebdes
    Member

    Laura
    The line looks fine as it is - add another post to see what it looks like between posts.

    April 13, 2013 at 2:29 pm #35252
    TWF
    Member

    Oui je suis français.


    French Designer WordPress themes and plugins.
    Concepteur de Thèmes et d’extension WordPress.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble