Responsive Images (Specifically Site Logo in Site Name Area)
Permalink Browser Info Environment
I have a question that may actually be a core function question but I'm unsure as I'm still learning to work in 5.7.x...
I've found that there is a 'Thumbnail' function built into the file manager for images and I'm trying to figure out how to harness this to automatically change the website logo image I'm using from it's standard version to a thumbnail on mobile phones.
I'm not really sure how to implement this with your theme and after many searches on concrete5.org and looking through core functionality documentation I can't find a built-in accessible solution, if one even exists...
Any help on this or a push in the right direction would be greatly appreciated. Thanks!
I've found that there is a 'Thumbnail' function built into the file manager for images and I'm trying to figure out how to harness this to automatically change the website logo image I'm using from it's standard version to a thumbnail on mobile phones.
I'm not really sure how to implement this with your theme and after many searches on concrete5.org and looking through core functionality documentation I can't find a built-in accessible solution, if one even exists...
Any help on this or a push in the right direction would be greatly appreciated. Thanks!
Type: | Discussion |
---|---|
Status: | In Progress |
yes, this is a core function, but it's up to the theme to support it.
Here is the documentation for the function:
http://www.concrete5.org/documentation/developers/5.7/designing-for...
Initially the theme had support for this, but I decided to disable it temporarilly because it didn't work very well with PNG images. PNG files are automatically converted to JPG, resulting in blurry, low-quality images. A user complained about it, so I decided to temporarily disable this.
Anyway, if you want to enable it, simply edit the page_theme.php file and uncomment the function getThemeResponsiveImageMap. This will add support for the default image sizes included in the Elemental theme. Then you should be able to add your own custom thumbnail sizes (by going to Dashboard > System & Settings > Files > Thumbnails > Add Type, and then adding those types to the getThemeResponsiveImageMap function in the page_theme.php file).
Hope this helps!
Jordi