Support » Plugins » [Plugin: ReciPress] Main Image Size & Border Change?

  • Resolved Palendrone


    Hi, until I realised that using featured image did not allow recipe applications such as paprika to pull in the image I have now changed the featured image to be the completed recipe photo within ReciPress post.

    However… This has resulted in the image being what looks to be 100px x 100px, here is one of my recipe pages on my website:

    The other image on my site I use the following custom.css:

    .woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img {
            border-radius: 10% 25%;
            border-color: #b81c00;
            padding: 2px;
    	border: 1px solid #b81c00;
    	background: #fff;

    Is it possible to easily change the image size to something more like 250px x 250px and apply the border radius as above?

    Many thanks for looking but am a little stumped at present!

Viewing 2 replies - 1 through 2 (of 2 total)
  • There are two ways to adjust this:

    1. Change your thumbnail image size in Settings > Media
    2. Modify the plugin to use a different image size

    The image size is “thumbnail”. You can change this to “medium”, “large”, or a custom image size. It is set in recipress > php > function.php on line 153. The code looks like this:

    case 'photo':
    	if(current_theme_supports('post-thumbnails') && recipress_options('use_photo') != 'no')
    		$photo = get_the_post_thumbnail($post->ID, 'thumbnail', $attr);
    	else {
    		$photo_id = $meta['photo'][0];
    		$photo = wp_get_attachment_image($photo_id, 'thumbnail', false, $attr);
    	return $photo;

    Simply change “thumbnail” to the other size name.

    WOW – Couldn’t of asked for a more appropriate reply but from the author of the plugin!

    I shall go and give this a go – Thank you very much Tammy :0)

    Superb plugin too BTW!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: ReciPress] Main Image Size & Border Change?’ is closed to new replies.