I have a few sites set up now with CMSMS and it's amazing, so simple to use for someone like me who hasn't really got the first clue. This particular site isn't used much at all so I'd thought i'd use it as a test site for getting the mobile side of things working.
The site, http://www.hqpm.co.uk, is running CMSMS 1.9.4.2 with PHP 5.2.17 on an Apache server. It runs perfectly well, CSS is valid (for desktop site) and the HTML is as valid as I care to have it.
I am trying to create a mobile version of my site using Gorans incredibly simple blogpost (http://www.i-do-this.com/blog/14/Make-y ... bile-ready)
and it all worked really well... apart from the mobile version isn't picking up the CSS I have created for it.
In the main site template I have put this:
Code: Select all
{* This is the mobile bit *}
{if $mobiletemp}
{cms_stylesheet name='mobilestyle'}
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
{else}
{cms_stylesheet}{/if}
{* This is the mobile bit *}
</head>
</__body>
<!--MOBILE TEST-->
{if $mobiletemp}
</__body>
<div id="header">
{sitename}
</div>
<div id="menu">
{menu template='mobiletemplate'}
</div>
<div id="content">
{content}
</div>
{else}
<!--END MOBILE TEST-->
Code: Select all
#primary-nav ul {
list-style-type:none;
}
img.displayed {
display: block;
margin-left: auto;
margin-right: auto; }
When I check the source code using an app on my phone I can see that the correct css file is being included (the one above), but it's just not having any effect on the actual site.
I've tried to include as much as possible here but if I am missing anything please let me know.
Thanks in advance!