• Hi folks,

    recently built a “date in a cube” and removed the meta content
    after the title which says: posted on.

    A peak of how it looks now: http://www.fortherestless.com/news

    I have it outlined like such in the content.php,m calling the date via a class called.postdate

    <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    <div class="postdate">
    <span class="month"><?php the_time(M) ?></span>
    <span class="day"><?php the_time(d) ?></span>
    <span class="year"><?php the_time(Y) ?></span>
    </div>
    </h1>

    and like this in the css.
    .postdate {
    position: relative;
    font-family: Georgia, serif;
    color: #000;
    float: right;
    width:65px;
    height:65px;
    }

    Problem is that I can’t get it at exact the same position.
    Do I need to fix this through .postdate, with the position tag/margin tags ?

    Advice on how best to do this very welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This issue may be best posted on a more relevant, CSS specific forum.

    Thread Starter nessler

    (@nessler)

    eurm, themes and templates, says in the category that css problems should be here. “XHTML and CSS” in the description.

    I am about to create a child theme, started making a lot of changes before I was aware one should do that in the first place.

    I would like to make this last final change and then go on with creating the child theme, and update wordpress right after that.

    I’m sorry but it is beyond the scope of these forums to deal with general CSS issues. Try a dedicated CSS resource such as http://www.css-discuss.org/ instead. In the meantime, using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘trying to add the date on the same line of title’ is closed to new replies.