(I see that you explained it for DW Focus with header custom code and then Jetpack CSS Editor, but that didn’t work for WD Fixel. I figured I’d try before I asked!)
Thank you for creating this beautiful theme. I LOVE IT. And, I very much appreciate your assistance with this beginner’s technical question!
-Elizabetty
To remove the Author, Date & Categories from each individual post in DW Fixel, please use the Jetpack CSS Editor, then add the following code:
.main-content .entry-title {
padding-bottom: 10px;
}
.main-content .entry-meta {
display: none;
}
.single-detail .entry-content {
border-top: 1px solid #E4E4E4;
padding: 20px 0 0;
}
Hope this helps !
Dominic – That was VERY helpful. Worked like a charm for removing all three (date, category, and author from each actual post), however, I’m afraid I was unclear in my question. Can you give me 3 different chunks of code for each scenario? Sorry to be a pain and ask for something further, but I’m not sure I want to remove all three items. If you have the time and you are able to send 3 separate CSS code changes, I would be most appreciative! Thank you for all of your help!
Best,
Elizabetty
Don’t worry 🙂 ! You can open the content-modal.php file in the folder path “\wp-content\themes\dw-fixel”. Find the line 18 to line 28.
– To remove the Author, you can comment the following code:
<!--<i class="icon-user"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="<?php echo get_the_author_meta( 'display_name' ) ?>"><?php echo get_the_author_meta( 'display_name' ) ?></a> -->
– To remove the Date time, you can comment the following code:
<!-- <i class="icon-time"></i> <a href="<?php echo get_day_link( get_the_time('Y'), get_the_time('m'), get_the_time('d') ) ?>"><time datetime="<?php the_time() ?>"><?php the_date(); ?></time></a>
-->
– To remove the Categories, you can comment the following code:
<!-- <?php $terms = get_the_category(); ?>
<?php if( !empty($terms) ) : ?>
<i class="icon-folder-open"></i>
<?php $i = 0; ?>
<?php foreach ( $terms as $term ) : $i++; ?>
<a href="<?php echo get_term_link( $term, 'category' ) ?>"><?php echo trim( $term->name . ( $i < count( $terms ) ? ',' : '' ) ); ?></a>
<?php endforeach; ?>
<?php endif; ?> -->
Hope this helps !
Hi!
Is it possible to remove the autor in the box also on the home page?
you can open the content.php file. Find the line 39 to line 45:
Replace the following code:
<?php printf('<i class="icon-user"></i> <a class="author-homepage" href="%s" rel="author">%s</a> <span class="date"><i class="icon-time"></i> <a href="%5$s"><time pubdate datetime="%s">%s</time></a></span>',
get_author_posts_url( get_the_author_meta('ID') ),
get_the_author(),
get_the_time('c'),
get_the_date(),
get_day_link( get_the_time('Y'), get_the_time('m'), get_the_time('d') )
); ?>
With new code:
<?php printf('<i class="icon-user"></i> <a class="author-homepage" href="%s" rel="author">%s</a> <span class="date"><i class="icon-time"></i> <a href="%5$s"><time pubdate datetime="%s">%s</time></a></span>',
get_author_posts_url( get_the_author_meta('ID') ),
get_the_author(),
get_the_time('c'),
get_the_date(),
get_day_link( get_the_time('Y'), get_the_time('m'), get_the_time('d') )
); ?>
Then add the following code to the style.css file:
.block-meta .icon-user, .block-meta .author-homepage {
display: none;
}
Hope this helps !
Thank you for your answers to all, Dominic! You were very, very helpful! Cheers, Elizabetty
Thanks Dominic, it works perfectly!
Please login or Register to submit your answer