Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

@media only screen

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi - I'm struggling with @media only screen
www.branchwoodpublishing.co.uk/newsite
J3.3.1
Inspire template

There's a phone number top right of the screen with class .logotype, which I've floated right.
I've tried to turn off the float for mobiles, but I'm not getting it right.
I'm using:
@media only screen
and (min-width : 320px)
and (max-width : 680px)
{
body #top2 .logotype {float: none;}
}
Any idea what I'm doing wrong?
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Ooops - I've just broken the site - I'll upload it again…
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
The code snippet looks alright

Are you able to add a link when the site is back up?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - thanks for getting back to me.
Ad a link to www.branchwoodpublishing.co.uk/newsite?
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
I'm seeing an installation screen currently

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I forgot to omit the installation folder. I've deleted it, and the site is back up…
I don't know how I broke it, but all the internal pages disappeared. I thought the quickest way back would be to upload the whole lot again.
The pages are still not there, and some changes I made in Theme Magic are still there.
I replaced the template folder initially, but that didn't seem to help.
I also removed everything from custom.css in case I'd done something wrong in there, but no joy with that either.
It's still uploading, but you should be able to have a look at the phone number now…
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

The media query is working the float is removed

@media only screen and (max-width: 680px) and (min-width: 320px)
body #top2 .logotype {
float: none!important;
}

Are you using akeeba back up to restore sites I've always found that to be the best way - I use the pro paid version as that has more options about restoring a previous version

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - it is indeed working. I've probably got ahead of myself and wasted your time. Sorry.
More puzzling to me is why the site is still not working.
There must be commands in the database which are not being overridden by the new upload.
Not a great problem - I've only just started on this update from a DW site to Joomla, and it's one of mine.
I do use Akeeba backup pro on all my sites now, following your earlier advice. This one I've only just started.
Can you see what I've done to break the site? If not I'll start from scratch and reinstall from the beginning…
Thanks again for your help
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

looking at the site it looks like a template layout issue?

e.g. using the home layout throughout the site

The home page needs its own layout/template style

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - I think I'm losing it. Indeed, it was a layout problem.
Thanks yet again for your help, and sorry to have wasted your time…
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
No problem

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers