Community Forums › Forums › Archived Forums › Design Tips and Tricks › Post Date help
- This topic has 1 reply, 2 voices, and was last updated 13 years, 2 months ago by
Anand Kumar.
-
AuthorPosts
-
May 14, 2013 at 2:03 pm #40903
angieatc
MemberThe 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?
http://test2.strosgirldesigns.com/My design site, Hill Springs Designs
May 17, 2013 at 9:40 am #41388Anand Kumar
MemberGoto 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 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.