Limiting available sizes
donstrack
Registered Users Posts: 3 Beginner grinner
I just discovered a way to show just two sizes from the "Sizes" icon at lower right on the default image screen. Wanting to have just two sizes, I did some fiddling with the CSS and came up with this CSS code that gives me what I like, just two sizes, "Fill" that fills the available screen, and "Original" that displays the original image. I have never seen the value of providing any other size.
This was added at Customize -> Content and Design -> All Galleries -> CSS
#ImageSizeS.yui3-menu-item,
#ImageSizeM.yui3-menu-item,
#ImageSizeL.yui3-menu-item,
#ImageSizeXL.yui3-menu-item,
#ImageSizeX2.yui3-menu-item,
#ImageSizeX3.yui3-menu-item,
#ImageSizeX4.yui3-menu-item,
#ImageSizeX5.yui3-menu-item,
#ImageSize4K.yui3-menu-item,
#ImageSize5K.yui3-menu-item
{
display:none;
}
A quick check of my mobile devices confirms that the change only applies to desktop computers, and not to mobile devices.
Don Strack
This was added at Customize -> Content and Design -> All Galleries -> CSS
#ImageSizeS.yui3-menu-item,
#ImageSizeM.yui3-menu-item,
#ImageSizeL.yui3-menu-item,
#ImageSizeXL.yui3-menu-item,
#ImageSizeX2.yui3-menu-item,
#ImageSizeX3.yui3-menu-item,
#ImageSizeX4.yui3-menu-item,
#ImageSizeX5.yui3-menu-item,
#ImageSize4K.yui3-menu-item,
#ImageSize5K.yui3-menu-item
{
display:none;
}
A quick check of my mobile devices confirms that the change only applies to desktop computers, and not to mobile devices.
Don Strack
0