WordPress.org

Forums

[resolved] [Plugin: ReciPress] Main Image Size & Border Change? (3 posts)

  1. Palendrone
    Member
    Posted 1 year ago #

    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: http://www.pricesspices.com/chinese-roast-duck/

    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!

  2. Tammy Hart
    Member
    Posted 1 year ago #

    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;
    break;
    

    Simply change "thumbnail" to the other size name.

  3. Palendrone
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic