![]() |
|
zpBootstrap - graphics within Zenpage not responsive. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zpBootstrap - graphics within Zenpage not responsive. (/thread-13278.html) |
zpBootstrap - graphics within Zenpage not responsive. - tplowe56 - 15-02-2019 Vincent - is this something would be easy to fix? Images/graphics inserted into zenpages are not responsive on mobile. (they do not resize to fit screen) zpBootstrap - graphics within Zenpage not responsive. - acrylian - 15-02-2019 That is easy to fix. The general theme css (or a specific content classjust needs a define like:
zpBootstrap - graphics within Zenpage not responsive. - tplowe56 - 15-02-2019 Thx! zpBootstrap - graphics within Zenpage not responsive. - vincent3569 - 18-02-2019 hi so, more simple: have a look on the tip on the bottom of this page: zpBootstrap - graphics within Zenpage not responsive. - acrylian - 18-02-2019 I think a general CSS define as I noted above should generally be in the theme (any new theme I will create will do). It should not be necessary to edit any files. It does not harm any image to have that. But the benefit is any image's width will size to its parent element's width automatically. zpBootstrap - graphics within Zenpage not responsive. - vincent3569 - 18-02-2019 I agree and desagree. My theme generally manages responsive images as you describe above. So, with my theme, each image should have 2 classes : Of course, gallery content automatically add these classes, but they should be added manually for each personnal content that user want to be responsive (my theme doesn't know if user want its content to be responsive or not). So, with these 2 classes, my theme is robust, with pictures managed by zenphoto (thumbnails and other sized pictures) and pictures added by users in news/pages contents. zpBootstrap - graphics within Zenpage not responsive. - acrylian - 18-02-2019
Only if it set that via Unless I am remembering wrong offhand even tinyZenpage for example sets such a size if on the parent wrapper element and not on the image itself. But of course it's your theme. I would not do it this way but I also wouldn't use bootstrap ;-) zpBootstrap - graphics within Zenpage not responsive. - vincent3569 - 18-02-2019 of course it should not be done. but it can be done by users :-) unfortunatly, in the same way, to have responsive content in news/pages, users may have to edit their content to add tags/classes requested by Boostrap. I create a page (provided with my theme in theme description) to explain how to design personnal content to be responsive using Boostrap framework: my theme can't add them in user contents and users have to edit their contents to make it responsive. zpBootstrap - graphics within Zenpage not responsive. - acrylian - 18-02-2019 Any custom site theme I do or did just has the above defines and if someone sets any styles as not supposed to it will have side effects. The recommended way to add images to Zenpage is tinyZenpage (which perhaps will use a content macro in the future to better cover outdated or non existing images etc). A theme cannot cover all possible usages so some "education" or "learning" from users is always needed I fear ;-) zpBootstrap - graphics within Zenpage not responsive. - tplowe56 - 19-02-2019 Removing the size attributes of images after inserting in a ZenPage makes the image responsive. Something I didn't investigate. Thanks for all the advice. |