How to remove code from parent theme in child theme
-
I do no want the below chuck of code to be run on my website, which is located in the single.php file in the Fashionista theme. I’d like to code the removal of this in my child theme as opposed to removing it from the parent theme. How do I do this?
https://onethinginteresting.com/2013/12/floral-and-plaid-scarf/. I don’t want the author section to show.
Thank you!
<div class="clearfix author-info"> <div class="author-photo"><?php echo get_avatar( get_the_author_meta( 'ID' ) , 75 ); ?></div> <div class="author-content"> <h3><?php the_author(); ?></h3> <p><?php the_author_meta( 'description' ); ?></p> <div class="author-links"> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="me">More Posts</a> <?php if ( get_the_author_meta( 'twitter' ) ) : ?> <a href="https://twitter.com/<?php echo get_the_author_meta( 'twitter' ); ?>">Twitter</a> <?php endif; ?> <?php if ( get_the_author_meta( 'facebook' ) ) : ?> <a href="https://facebook.com/<?php echo get_the_author_meta( 'facebook' ); ?>">Facebook</a> <?php endif; ?> <?php if ( get_the_author_meta( 'linkedin' ) ) : ?> <a href="https://linkedin.com/in/<?php echo get_the_author_meta( 'linkedin' ); ?>">LinkedIn</a> <?php endif; ?> </div> </div> <!-- .author-info --></div>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to remove code from parent theme in child theme’ is closed to new replies.