By DAISUKE TANAKA on Friday, 27 October 2017
Posted in Technical Issues
Likes 0
Views 507
Votes 0
I just installed EasySocial latest version: 2.1.2.
After updating, custom background image doesn't displayed in mobile(ex. iPhone).
How can I set the custom background image for mobile?
Hey Daisuke,

We have actually did this on purpose in 2.1 and the main reason being that the screen on mobile devices are already so small, displaying a custom background really wouldn't make sense since at least 85% of the background is covered by the form

If you really need this, what you can do is to edit the file /administrator/components/com_easysocial/includes/login/login.php and at line 52, locate the codes below,

[gist]
$image = "background-image: url('" . $image . "');";
[gist]

Replace it with,

[gist]
$image = "background-image: url('" . $image . "') !important;";
[/gist]

By the way, is the background very important for your mobile site? If so, may I know why?
·
Friday, 27 October 2017 21:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

>By the way, is the background very important for your mobile site? If so, may I know why?

Because some image could shows what kind of type that community is, even thought the image size is small.
In the new version, the front page is just single color...

By the way, could you give us how we could override the "login.php and at line 52".
We couldn't use the override function of Joomla.

Best Regards,
diggtag
·
Saturday, 28 October 2017 10:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Daisuke,

You can't override this file as it is a library but I will add a ticket for this internally so that we do not enforce this on mobile devices in the next release.
·
Saturday, 28 October 2017 13:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thank you for your consideration.
I am pleased to fix it in the next release.

Best Regards,
diggtag
·
Thursday, 02 November 2017 17:18
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Once you update to the latest version, the login background is no longer disabled.
·
Thursday, 02 November 2017 18:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post