Forum Replies Created
-
AuthorPosts
-
njcooneyMember
Still hoping for some help with this - anyone have any ideas please?
njcooneyMemberAnyone? help? Pleeease? 😉
njcooneyMemberI'm sorry Nick, I don't understand this question. Do you mean how am I formatting it? I included the code above that I am using in the functions.php and style.css files... is there more that you need?
njcooneyMemberStill hoping for help on this... anyone?
Thanks
njcooneyMemberhelp? please?
🙂
Jay
njcooneyMemberThanks Nick, I appreciate the ongoing help.
How would I find the code that I need to put in the place of [post_info] ? Is it somehow denoted in the functions.php file? Right now the date box is showing up fine for the other posts in the home feed, just not in your widget.this is the code in functions.php:
/**
* Customize Post Date format and add extra markup for CSS targeting.
*
* @author Gary Jones
* @link http://code.garyjones.co.uk/style-post-info/
*
* @param string $output Current HTML markup.
* @param array $atts Attributes.
*
* @return string HTML markup.
*/
function child_post_date_shortcode( $output, $atts ) {return sprintf(
'%1$s%2$s %3$s',
$atts['label'],
get_the_time( 'j' ),
get_the_time( 'M' ),
get_the_time( 'Y-m-d\TH:i:sO' )
);
}
and this is the CSS:
.post-info {
font-family: Arial, sans-serif;
font-size: 8px;
margin: 0 0 5px;
padding: 1px 0 5px 48px;
}
.post-info .time,
.post-info .time span {
color: #fff;
display: block;
text-align: center;
width: 42px;
}
.post-info .time {
left: 10px;
position: absolute;
top: 10px;
}
.post-info .day {
background: #cbb28c;
font-size: 20px;
height: 18px;
line-height: 1em;
padding-top: 2px;
padding-bottom: 2px;
margin-left:5px;
}
.post-info .month {
background: #e2cdad;
height: 10px;
line-height: 1.33333;
text-transform: uppercase;
padding-top: 2px;
padding-bottom: 2px;
margin-left:5px;
}#content .post {
position: relative;
}
#content .post h1 {
margin-left: 48px;
}
#content .post h2 {
font-size: 18px;
margin: 10px 10px 0 48px;
}
.hentry {
position: relative;}
njcooneyMemberSorry Nick, I dont understand. Can you please tell me specifically what to add, and where?
-
AuthorPosts