- This topic has 2 replies, 2 voices, and was last updated 4 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support › Forums › Sunshine Pro Theme › Adding an image size to the SimplePro Featured Page Widget
This might be a long shot – but is there a way I can add another image size to the SimplePro Featured Page Widget ? I noticed the size is configure at the tag, so I assume a modification to the related PHP code is required.
Can you point me to the correct area of code to modify? I this is on Sunshine Pro.
Thanks
You can register new thumbnail size using add_image_size() function and new thumb name will automatically add into existing featured image size drop down list. So you will select the new name and save the widget. For existing images you will use Force Regenerate Thumbnail plugin and generate the thumbnail with new size. So you will get correct resolution for your images.
Codex about add_image_size().
Thank You. That’s very helpful for the image size.
After using the SimplePro Featured Page widget further – there is also a height parameter that I think I will need to change.
When using the widget on the Home Top widget area; 2 columns, image size 695×365 –
The actual image size (desktop) displayed is 555px x 291px.
Is there a way to increase the height to 366?
Looking at the CSS, I see .img {height:auto;} but can’t find where the 291 height is being set.
Example:
See the two images under the slider on the home page: