In the Jupiter WordPress theme, you can define all your custom image sizes in one place and then use them in different places including shortcodes. It helps you to control all your custom image sizes easily
In this article, we’ll explain about adding custom image sizes and how to assign the custom image sizes to the shortcodes
Note: The image sizes you create highly depend on the place you want to use it. This image size will not be used for logos. For more information please read this article.
Defining an Image Size
To define a custom image size:
1From the WordPress left menu, go to Jupiter > Control Panel > Image Sizes page.
2Click on the Add a New Size button.
3Fill out the form with necessary information.
Setting | Description |
---|---|
Image width | Defines the width of an image. |
Image height | Defines the height of an image. |
Size name | Sets a custom name for the image size template. |
Hard crop | Hard crops the image. |
4Click on Save Settings button.
Note: This newly created image size will now be available as an option to be used in various locations such as shortcodes and theme options.
Assigning an Image Size to a Shortcode
As mentioned above, custom image sizes will be available as an option in various shortcodes. Below is an example on how to use your custom image size in the Blog shortcode.
1In the WordPress dashboard, edit a page which contains the blog shortcode.
2Click on the Edit Blog button.
3From Blog settings pop-up, click on Image Size select field.
4Select your custom image size and click on the Save changes button.