March 5, 2020 at 5:31 am #497154
The Author Pro book dimensions are fixed to very thin books. My books are more like textbooks, the standard size being 8.5x11. I tried to upload these thinking the site would automatically keep the dimensions, but instead the site cuts off margins and displays awkward covers.
Author Pro directions say to crop all books accordingly: "The recommended book cover image upload size is 720 x 1140 pixels which will be displayed at 360 x 570 pixels."
I would like to adjust this size to 850 x 1100, then let the crop sizes adjust automatically. Can you help?March 5, 2020 at 7:39 am #497158Brad DaltonParticipant
Good question. On what page do you want to change the book size? The front page? The single book page?
March 5, 2020 at 7:51 am #497159
Both Front Page 2 and the Library Page automatically trim the margins, rather than resize the image. Either adjusting the trim automation or coding a special resizing would solve the problem, I suppose, but I don't know how to do that.March 5, 2020 at 8:02 am #497160
I have been testing this to see how the theme could resize, and I find the theme automatically cropping the photo instead to a hard-crop 360-570. Like so:
Compared to what it should be:March 5, 2020 at 9:44 am #497164Brad DaltonParticipant
You can change the image size in your child themes functions.php file using add_image_size and regenerate thumbnails then you'll need to use CSS to position both elements as they hard coded in column classes.
March 5, 2020 at 10:01 am #497165
So, 850x1100 would be the image size. Do you know the exact code that I should type into my functions.php file?March 5, 2020 at 5:10 pm #497171
The book size setting is actually in the Author Pro Plugin for the books/library. You can add this to the functions file.
// Add new image sizes. add_image_size( 'author-book-size', 850, 1100, TRUE );
Then install the Regenerate Thumbnails plugin and run it.
Love coffee, chocolate and my Bella!March 5, 2020 at 6:51 pm #497172
Thanks Anita, but that didn't seem to work. It added the ability to embed a special image size within a text editor, but the Featured Image is still being cropped in both the front page and within the library page, even with an image exactly the size 850x1100. Frustrating. Any other ideas?March 5, 2020 at 7:51 pm #497173
So take a look at this about image sizes - https://developer.wordpress.org/reference/functions/add_image_size/.
Or you can jump directly down to this section - https://developer.wordpress.org/reference/functions/add_image_size/#crop-mode.
See if any of the crop modes there will help.
Love coffee, chocolate and my Bella!March 5, 2020 at 9:10 pm #497174
This helped a little in understanding that I need to hard crop my image photos to 360x466 to get them to appear properly, but this still doesn't solve the force cropping. I even touched up the code you sent by removing the "true" statement to see if that worked. Still, the featured images are being cropped rather than resized.
I can't imaging why there isn't an easier solution to this?March 5, 2020 at 9:38 pm #497175
I can't either but I think it's in the plugin and not the theme. You could try posting this on the plugin page since it's the plugin that creates the Library and not the theme.
Love coffee, chocolate and my Bella!
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.