-
Good afternoon |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello, this are all pluggable functions in https://github.com/bootscore/bootscore/blob/main/inc/template-tags.php. You can edit all by copy the function between the For example this one removes the date updated: function bootscore_date() {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if (get_the_time('U') !== get_the_modified_time('U')) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
}
$time_string = sprintf(
$time_string,
esc_attr(get_the_date(DATE_W3C)),
esc_html(get_the_date())
);
$posted_on = sprintf(
/* translators: %s: post date. */
'%s',
'<span rel="bookmark">' . $time_string . '</span>'
);
echo '<span class="posted-on">' . $posted_on . '</span>'; // WPCS: XSS OK.
} This one adds a icon to the user in loop: function bootscore_author() {
$byline = sprintf(
esc_html_x('by %s', 'post author', 'bootscore'),
'<span class="author vcard"><i class="fas fa-user"></i> <a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a></span>'
);
echo '<span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
} But of course, you're right. In However, just open <?php
bootscore_date();
_e(' by ', 'bootscore');
the_author_posts_link();
bootscore_comment_count();
?> Replace with this: <?php
bootscore_date();
bootscore_author();
bootscore_comment_count();
?> Does this help? |
Beta Was this translation helpful? Give feedback.
Hello,
this are all pluggable functions in https://github.com/bootscore/bootscore/blob/main/inc/template-tags.php. You can edit all by copy the function between the
if (!function_exists('bootscore_function_name')) :
...endif;
to your child'sfunctions.php
.For example this one removes the date updated: