Background images on iPhone

Permalink Browser Info Environment
After creating the site the images I use in a content block background do not scale down when viewed on iPhones.
I have tested it with various images and slide scale settings but no change.
Can anyone help?

Type: Discussion
Status: In Progress
joannawright
View Replies:
jordif replied on at Permalink Reply
jordif
Hi,

could you provide a link so I can have a look?

Maybe you're already aware of this, but there's also a section on the documentation that may be of help: "How to prevent background images from being cut off?"

https://www.concrete5.org/marketplace/themes/long-story-short-parall...

Regards,

Jordi
joannawright replied on at Permalink Reply
joannawright
The images are actually slightly smaller than the 1440 x 900 but i have tested with the suggested resolution and the same issue occurs.

the site is -

http://joannawrightphotography.co.uk/...
jordif replied on at Permalink Reply 1 Attachment
jordif
Hi,

can you try adding the following code? You need to go to Dashboard -> Themes -> Long Story Short Parallax -> Customize. Then add the code to the "add your CSS" area:

@media (max-width: 979px) {
   .parallax-backgrounds .slides-container > div.ccm-block-styles {
     background-attachment: scroll !important;
     background-position: center top !important;
   }
}


This should help with slides that are not full-height (such as the 3rd slide).

As for full-height slides (such as the 1st slide), background images will be resized to always fill the whole browser window. Obviously, if the image is not the same size as the broswer window, a part of the image will be cut off.

Quoting from the documentation:

"By default, background images are meant to cover the whole slide area, so they might be cut off depending on the screen resolution (there are lots of screen resolutions and it's impossible to get the background to fit the same way on all computer screens)."

I have attached an image with a simulation of why the first image is being cut off. You see, if you made it any smaller, the image would not fill the full height of the slide.

If you check the demo site, background images are also cut off.

So, for the first slide, you may want to consider:

A. Using a centered "hero-style" image, that can be cropped vertically and horizontally without losing the center of interest.

B. Not making the first slide full-height.

Please let me know if you have any further questions,

Jordi
joannawright replied on at Permalink Reply 2 Attachments
joannawright
Thanks for the speedy reply but the examples you sent are what I am trying to achieve.
Attached are screen grabs of what i am actually getting - it appears to be cropping a lot in both the vertical and the horizontal.
It happens on every device I have tested but does not happen from your own demo site, the vertical sizing is correct and only the sides have been cropped.

Any suggestions?
jordif replied on at Permalink Reply
jordif
Hi,

have you tried adding the code I mentioned in my previous reply? It should force the background to scale correctly.

Jordi

concrete5 Environment Information

<br />
<b>Warning</b>: set_time_limit() has been disabled for security reasons in <b>/home/linweb31/j/joannawrightphotography.co.uk/user/htdocs/updates/concrete5.6.3.3/concrete/core/controllers/single_pages/dashboard/system/environment/info.php</b> on line <b>12</b><br />
# concrete5 Version
5.6.3.3

# concrete5 Packages
Awkward Slider (1.0.4), Blueberry Image Slider (1.3), CameraCRETE Slider (1.0), Cube Testimonials (1.0.6), Galleria image gallery (2.0), Long Story Short Parallax (1.3.3), Mosaic Gallery (1.2.3), Multimedia Box (2.0.2.2), Power Slider Lite (1.1.1), Simple Image Gallery (1.1.3), Sortable Fancybox Gallery (1.17), Sortable Responsive Gallery (1.5), Whale Nivo Image Slider (1.2).

# concrete5 Overrides
js/jquery.justifiedGallery.min.js, js/bootstrap.min.js, js/jquery.infinitescroll.min.js, js/runsb.js, js/jquery.justifiedGallery.js, js/jquery.colorbox-min.js, js/jquery.swipebox.min.js, js/jquery.min.js, css/justifiedGallery.css, css/swipebox.css, css/bootstrap.min.css, css/colorbox.css, css/style.css, css/justifiedGallery.min.css

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.42

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mhash, mssql, mysql, mysqli, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 9999
memory_limit - 64M
post_max_size - 20M
sql.safe_mode - Off
upload_max_filesize - 20M
ldap.max_links - Unlimited
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.11 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.11

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.