• Hello!

    I’d like to be able to change the default placeholder image used by the theme when no featured image has been set. It’d be great it if were available in the ‘Theme Options’, but a way to override it in a child theme would be wonderful as well.

    Thanks!

Viewing 1 replies (of 1 total)
  • Hi iueweb. You’ll need to create the placeholder image and edit one theme file.
    1. Copy file content-featured.php from the parent theme to your child theme.
    2. At the top of the file you’ll find this code:

    <?php elseif ( ot_get_option('placeholder') != 'off' ): ?>
       <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
    <?php endif; ?>

    3. Change the img src to this:

    <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />

    4. Create a /img folder in your child theme.
    5. Name your placeholder image “thumb-medium.png” and put it in your child theme /img folder.

    That should do it.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature Request: Set Default Post Thumbnail in Theme Settings’ is closed to new replies.