• 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

Post Date help

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 › Post Date help

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 13 years, 2 months ago by Anand Kumar.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 14, 2013 at 2:03 pm #40903
    angieatc
    Member

    The site is still a work in progress as I am trying to work out all of the kinks before getting into the color portion of the design.

    If you go to the site here: http://test2.strosgirldesigns.com/ you will see the date is really messed up. It should look like the 24K date which shows correctly here: http://test2.strosgirldesigns.com/?p=79 I have copied all of the code from the 24k function file:

    /** Relocate the post info function */
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    add_action( 'genesis_before_post_title', 'genesis_post_info' );

    /** Customize the post info function */
    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter($post_info) {
    if (!is_page()) {
    $post_info = '<div class="post-date"><span class="month">[post_date format="M"]</span><span class="day">[post_date format="d"]</span></div>[post_categories before=""]<div class="comment-number">[post_comments zero="0" one="1" more="%"]</div>';
    return $post_info;
    }} (I removed the tags short code)

    and then I also added the CSS for it:

    /* Post Info
    ------------------------------------------------------------ */

    .post-info {
    float: left;
    font-size: 12px;
    margin: 5px 0 0 -170px;
    text-align: right;
    text-transform: uppercase;
    width: 150px;
    position: absolute;
    }

    .sidebar-content .post-info {
    float: right;
    margin: 5px 0 0 660px;
    text-align: left;
    }

    .post-info a,
    .post-info a:visited {
    border-bottom: none;
    }

    .sidebar-content .post-info {
    float: right;
    }

    .post-date {
    float: right;
    font-size: 18px;
    width: 100%;
    }

    .post-date .month {
    font-weight: bold;
    }

    .post-info li {
    list-style-type: none;
    }

    .post-info li a {
    border: none;
    color: #222;
    }

    .post-info li a:hover {
    color: #fff;
    }

    .post-info .comment-number {
    background: url(images/bg-comment-number.png) 0 3px no-repeat;
    clear: both;
    float: right;
    height: 25px;
    text-align: center;
    width: 25px;
    }

    .sidebar-content .post-info .comment-number {
    float: left;
    }

    .post-info .comment-number a {
    border: none;
    color: #fff;
    }

    .post-info .comment-number a:hover {
    background: none;
    color: #ffcb0f;
    }

    **I removed the sidebar-content-sidebar, content-sidebar-sidebar & sidebar-sidebar-content code as they are all unregistered within this theme.**

    What am I missing here?


    My design site, Hill Springs Designs

    http://test2.strosgirldesigns.com/
    May 17, 2013 at 9:40 am #41388
    Anand Kumar
    Member

    Goto your style.css and remove the following lines from .post-info

    `
    float: left;
    margin: 5px 0 0 -162px;
    text-align: right;
    position: absolute;
    width: 130px;`


    My two small blogs: NetRival | BlogSynthesis
    unanswerd

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2026 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