Forums

Monochrome Pro theme header image size problem (3 posts)

  1. wombi1973
    Member
    Posted 9 months ago #

    Hi all,
    this post is intended as a help to those who may have encountered this problem.
    I was using the great "Monochrome Pro" theme from GraphPaperPress but whenever I then loaded a page/post that had a featured image set, the featured image did not resize to fit the header area properly (as it should)...instead it displayed in it's large size!
    If you have had this problem, the solution is the following:

    In the theme's header.php file, locate the line:
    echo get_the_post_thumbnail( $post->ID, '950x400' );
    and replace it with the following:
    echo get_the_post_thumbnail( $post->ID, array (950, 400) );

    ..and that's all!

    Hope that helps.
    Kristian.

  2. Andrew Nevins
    Volunteer Moderator
    Posted 9 months ago #

    If you're not building your own theme and attempting to change a theme's files, create a Child Theme and manipulate files only within that theme.

  3. wombi1973
    Member
    Posted 9 months ago #

    Thanks for that.
    I am still relatively new to WordPress and was not sure about child themes....I shall try it out.

Reply

You must log in to post.

About this Topic