In visual composer, the 'Single Image' element has a box to put the size of the image. It says this:
Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).
What are 'other sizes defined by theme', and more importantly: Can I define a size that is relative to the viewport, rather than absolute pixels?
I would like portrait images to be viewed as big as possible, without slipping under the edge of the browser. So a '100% height' kind of code would be useful.
Is this possible, and, if not via this method, is there a different way to do this?
It depends on which type of post type you're using so each post type has it's own thumbnail size which can be set from the Theme Options, on your case you're using a Single Image and it cannot be set elsewhere but only on the place where you add it, the "other sizes defined by theme" is a phrase inherited from Visual Composer.
Regarding your other question, you cannot have an image to crop into different dimensions depending on the viewport, while what you can do is add for example 4 images (using Single Image element) and setting the size manually for each of them, and at their settings you can select on which screen size it should be visible.
Hey there,
In visual composer, the 'Single Image' element has a box to put the size of the image. It says this:
Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).
What are 'other sizes defined by theme', and more importantly: Can I define a size that is relative to the viewport, rather than absolute pixels?
I would like portrait images to be viewed as big as possible, without slipping under the edge of the browser. So a '100% height' kind of code would be useful.
Is this possible, and, if not via this method, is there a different way to do this?
Thanks!
Hi there,
It depends on which type of post type you're using so each post type has it's own thumbnail size which can be set from the Theme Options, on your case you're using a Single Image and it cannot be set elsewhere but only on the place where you add it, the "other sizes defined by theme" is a phrase inherited from Visual Composer.
Regarding your other question, you cannot have an image to crop into different dimensions depending on the viewport, while what you can do is add for example 4 images (using Single Image element) and setting the size manually for each of them, and at their settings you can select on which screen size it should be visible.
Best regards,
Laborator Team