Can somebody let me know how to make the K2 images that are created and displayed work with responsive templates?
I see that the code generated by K2 now is creating width tags. We need to not display the width and height in order to work with responsive templates.
Here is a sample of the code now:
<img style="width:360px; height:auto;" alt="Seagull Soaring in the Fresh Air" src="/media/k2/items/cache/c10c64c27e0606d1654b81b9bb482558_L.jpg">
I use the JCE editor and have just learned that we can set a parameter in each 'profile' in
plugin parameters -> Image Manager
to be "Always Include Dimensions" = "No" in order to NOT display image dimensions in our joomla content for articles created with JCE. This will make the images work with responsive designs.
Can we do the same thing with the K2 images gets uploaded for each article?
I would like to have the image sizes be served at the correct size the way K2 works so well but then to define width and heights.
Thank you, Sean Carney
I see that the code generated by K2 now is creating width tags. We need to not display the width and height in order to work with responsive templates.
Here is a sample of the code now:
<img style="width:360px; height:auto;" alt="Seagull Soaring in the Fresh Air" src="/media/k2/items/cache/c10c64c27e0606d1654b81b9bb482558_L.jpg">
I use the JCE editor and have just learned that we can set a parameter in each 'profile' in
plugin parameters -> Image Manager
to be "Always Include Dimensions" = "No" in order to NOT display image dimensions in our joomla content for articles created with JCE. This will make the images work with responsive designs.
Can we do the same thing with the K2 images gets uploaded for each article?
I would like to have the image sizes be served at the correct size the way K2 works so well but then to define width and heights.
Thank you, Sean Carney