jimdougherty
asked 7 years ago

How can I change content in the byline of posts? I want to replace the “X days ago” with the author’s name and date of publication. Thank you!

1 Answers
DominicStaff
answered 7 years ago

– If you want to change content, you login dashboard > post > add new > frame “categories”  right selected categories . you can add new “categories”
– You want to day the before, you can go to \wp-content\themes\dw-focus\inc\template-tags.php. line 128 – 136 copy coding override.
function dw_focus_posted_on() {
printf( __( ‘<time datetime=”%3$s” pubdate>%4$s</time>’, ‘dw_focus’ ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( ‘c’ ) ),
dw_focus_time_stamp( get_the_date(‘c’) )
);
the_category();
}
– Next you login Dashboard > theme options > added code
.single .site-content > .post .entry-meta {
overflow: hidden;
}
.entry-date {
display: block;
float: left;
}
.single .site-content > .post .post-categories {
margin: 0 0 0 5px;
}
.single .site-content > .post .post-categories li {
margin: 0 5px 0 0;
}
Regards,
Dominic

Powered by DW Question & Answer Pro