Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: I have full size images instead of “medium” size on frontpage

Discussion in 'Misc WordPress Requests' started by bloxgros, Oct 10, 2017.

  1. bloxgros

    Guest

    Reply To: I have full size images instead of “medium” size on frontpage, by bloxgros

    Hi Jacob,

    thank you very much! I found the problem in content.php, where I had to replace ‘post-thumbnails’ with ‘martin-home’:

    $image .= get_the_post_thumbnail( $post->ID, ‘martin-home’, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ) ) ).’‘;

    and to add this to functions.php:

    add_theme_support( ‘post-thumbnails’ );
    add_image_size( ‘martin-home’, ‘462’, ‘0’, true );

    Reply To: I have full size images instead of “medium” size on frontpage
     
    #1

Share This Page

Web Hosting