Deleting code on child theme (3 posts)

  1. kawaluana
    Posted 2 years ago #


    I need help deleting a code on my child theme. I don´t want the featured image to appear on top of my posts, as it´s set by default. On the parent theme, all I had to do was to delete this from post.php:

    <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false ) ); ?>

    On my child theme I only got the style.css. Should I create a post.php file? How do I do it... I created the style.css using a plugin. Also, once I create it, what should I add?


    My site: http://www.practicaryoga.com

  2. Andrei Olsen
    Posted 2 years ago #

    Copy post.php from parent over to your child theme and delete the part you want.

  3. kawaluana
    Posted 2 years ago #

    Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Topic