Problem loading website on mobile phones.
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 17
- Joined: Fri Nov 17, 2017 6:31 pm
Problem loading website on mobile phones.
My website is www.templederryns.ie. My problem is I cant get my template to display properly on mobile devices. I tried contacting the template provider many times but to no avail. I dont want to change my template as it fits us perfectly .Is there some setting to help or can it be linked to an app? I developed the device but I am no web developer so help is hugely appreciated.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Problem loading website on mobile phones.
ok, got it.
try edit index.php of template. search for meta name="viewport" and make it like
if not helped, u need @media rule in css file
try edit index.php of template. search for meta name="viewport" and make it like
Code: Select all
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Code: Select all
@media screen and (max-width: 800px) {
.span-6, .span-3, .col, #leftbar-w, #rightbar-w{width:98% !important;}
}
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
- Per Yngve Berg
- Joomla! Master
- Posts: 30938
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Problem loading website on mobile phones.
Code: Select all
<div id="rightbar-w" class="col span_3 clr">
It's "span3", not "span_3". The change will make the sidebar responsive and positioned below on small screens.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Problem loading website on mobile phones.
@Per Yngve Berg, no, because it's just similar naming - this is not bootstrap site, so changes in class name just will broke it.
i also named them wrong, so correct code will be
i also named them wrong, so correct code will be
Code: Select all
@media screen and (max-width: 800px) {
.span_6, .span_3, .col, #leftbar-w, #rightbar-w{width:98% !important;}
}
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
- Per Yngve Berg
- Joomla! Master
- Posts: 30938
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Problem loading website on mobile phones.
Bootstrap is loaded.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Problem loading website on mobile phones.
loaded, but site designed not for bootstrap
so simple renaming just make desktop site look like one-column mobile version.
so simple renaming just make desktop site look like one-column mobile version.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Problem loading website on mobile phones.
How can you saygluaiseach wrote: ↑Sun Oct 28, 2018 6:45 pm... I dont want to change my template as it fits us perfectly ....
When it doesn't display correctly on mobile phones? Your time might be better to spend your time finding a Template that works the way you want it to?fits us perfectly
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Problem loading website on mobile phones.
firstly check index.php in template folder for meta string.
second - paste css code
in
/templates/school/css/styles.css
second - paste css code
Code: Select all
@media screen and (max-width: 800px) {
.span_6, .span_3, .col, #leftbar-w, #rightbar-w{width:98% !important;}
}
/templates/school/css/styles.css
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Apprentice
- Posts: 17
- Joined: Fri Nov 17, 2017 6:31 pm
Re: Problem loading website on mobile phones.
Thank you so in my index.php i found the lineeffrit wrote: ↑Mon Oct 29, 2018 9:59 amfirstly check index.php in template folder for meta string.
second - paste css codeinCode: Select all
@media screen and (max-width: 800px) { .span_6, .span_3, .col, #leftbar-w, #rightbar-w{width:98% !important;} }
/templates/school/css/styles.css
<meta name="viewport" content="width=device-width" />
Do I replace everything that comes after viewport ?
Apologies for my ignorance. Do I also have to replace it in the styles.css ?
-
- Joomla! Apprentice
- Posts: 17
- Joined: Fri Nov 17, 2017 6:31 pm
Re: Problem loading website on mobile phones.
Okay I have added that to the style sheet. Now the menu on the right seems fine but the menu on the left doesn't work. I haven't changed the index.php yet.gluaiseach wrote: ↑Mon Oct 29, 2018 5:46 pmThank you so in my index.php i found the lineeffrit wrote: ↑Mon Oct 29, 2018 9:59 amfirstly check index.php in template folder for meta string.
second - paste css codeinCode: Select all
@media screen and (max-width: 800px) { .span_6, .span_3, .col, #leftbar-w, #rightbar-w{width:98% !important;} }
/templates/school/css/styles.css
<meta name="viewport" content="width=device-width" />
Do I replace everything that comes after viewport ?
Apologies for my ignorance. Do I also have to replace it in the styles.css ?
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Problem loading website on mobile phones.
u must change index.php first.
and if it doesn't work - then add css.
try replace meta string completely to my example
and if it doesn't work - then add css.
try replace meta string completely to my example
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Apprentice
- Posts: 17
- Joined: Fri Nov 17, 2017 6:31 pm
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Problem loading website on mobile phones.
this is good, but seems like u tried to insert css code into index.php also.
so it's shown on the top of the site.
delete this part.
so it's shown on the top of the site.
delete this part.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru