Problem loading website on mobile phones.

Everything to do with Joomla! 3.x templates and templating.

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.
Locked
gluaiseach
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Nov 17, 2017 6:31 pm

Problem loading website on mobile phones.

Post by gluaiseach » Sun Oct 28, 2018 6:45 pm

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.

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Problem loading website on mobile phones.

Post by effrit » Sun Oct 28, 2018 7:19 pm

ok, got it.
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">
if not helped, u need @media rule in css file

Code: Select all

@media screen and (max-width: 800px) {  
.span-6, .span-3, .col, #leftbar-w, #rightbar-w{width:98% !important;}  
}

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30938
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Problem loading website on mobile phones.

Post by Per Yngve Berg » Sun Oct 28, 2018 8:43 pm

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.

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Problem loading website on mobile phones.

Post by effrit » Mon Oct 29, 2018 3:12 am

@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

Code: Select all

@media screen and (max-width: 800px) {
.span_6, .span_3, .col, #leftbar-w, #rightbar-w{width:98% !important;}  
}

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30938
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Problem loading website on mobile phones.

Post by Per Yngve Berg » Mon Oct 29, 2018 5:01 am

Bootstrap is loaded.

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Problem loading website on mobile phones.

Post by effrit » Mon Oct 29, 2018 5:11 am

loaded, but site designed not for bootstrap :D
so simple renaming just make desktop site look like one-column mobile version.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Problem loading website on mobile phones.

Post by Webdongle » Mon Oct 29, 2018 9:46 am

gluaiseach wrote:
Sun Oct 28, 2018 6:45 pm
... I dont want to change my template as it fits us perfectly ....
How can you say
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?
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".

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Problem loading website on mobile phones.

Post by effrit » Mon Oct 29, 2018 9:59 am

firstly check index.php in template folder for meta string.
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;}  
}
in
/templates/school/css/styles.css

gluaiseach
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Nov 17, 2017 6:31 pm

Re: Problem loading website on mobile phones.

Post by gluaiseach » Mon Oct 29, 2018 5:46 pm

effrit wrote:
Mon Oct 29, 2018 9:59 am
firstly check index.php in template folder for meta string.
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;}  
}
in
/templates/school/css/styles.css
Thank you so in my index.php i found the line

<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 ?

gluaiseach
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Nov 17, 2017 6:31 pm

Re: Problem loading website on mobile phones.

Post by gluaiseach » Mon Oct 29, 2018 5:54 pm

gluaiseach wrote:
Mon Oct 29, 2018 5:46 pm
effrit wrote:
Mon Oct 29, 2018 9:59 am
firstly check index.php in template folder for meta string.
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;}  
}
in
/templates/school/css/styles.css
Thank you so in my index.php i found the line

<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 ?
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.

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Problem loading website on mobile phones.

Post by effrit » Mon Oct 29, 2018 6:19 pm

u must change index.php first.
and if it doesn't work - then add css.

try replace meta string completely to my example

gluaiseach
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Nov 17, 2017 6:31 pm

Re: Problem loading website on mobile phones.

Post by gluaiseach » Mon Oct 29, 2018 10:46 pm

effrit wrote:
Mon Oct 29, 2018 6:19 pm
u must change index.php first.
and if it doesn't work - then add css.

try replace meta string completely to my example
That worked perfectly. Thank you so much. My school is indebted to you for your help.

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Problem loading website on mobile phones.

Post by effrit » Tue Oct 30, 2018 4:15 am

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.


Locked

Return to “Templates for Joomla! 3.x”