Support » Theme: Typecore » Post image before title

  • Resolved jesuslopez65

    (@jesuslopez65)


    How can I put an image before the title in the blog section? If I put the featured image it looks cut and I want the same size that appears under the title.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    I would change the size that the theme crops the featured image to.

    On line 73 in functions.php you can change:

    
    add_image_size( 'typecore-large', 720, 340, true );
    

    to:

    
    add_image_size( 'typecore-large', 720 );
    

    This will give your featured images same aspect ratio as the default image is (no cropping). Preferably you’d edit this with a child theme.

    Thx Alexander this works. The image size is now correct, but the photo appears very pixelated and with poor quality, although the resolution of the image is correct. What can cause this behavior?

    Theme Author Alexander Agnarson

    (@alxmedia)

    Hm, have you run the regenerate thumbnails plugin once after changing the size? https://wordpress.org/plugins/regenerate-thumbnails/

    That’s it! Everything’s perfect now. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post image before title’ is closed to new replies.