-
AuthorPosts
-
April 29, 2011 at 4:37 pm #163392
Hi
How can I edit the html of the mobile site? I want to add my logo etc..
Thanks in advance.. 🙂
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
April 29, 2011 at 5:16 pm #389046The css for the mobile section is located in templates>ja_portfolio>css>handheld
However we have to create some css for your logo in there and call it. First add the following code to templates>ja_portfolio>css>handhelp>template.css
h1.logo, div.logo-text {
float: none;
margin: 0 auto;
}
h1.logo {
height: 34px;
width: 200px;
}
h1.logo a {
background: url("../../images/logo.png") no-repeat scroll center center transparent;
display: block;
height: 34px;
width: 200px;
}changing the logo.png bit as required.
Then we need to make sure it is actually called so we need to go into the template manager and in the layouts tab edit the iphone layout and the handheld layout to make sure the css is called. Look for the stylesheets definitions in those two edits and in my older copy of portfolio the paths are incorrect but that may have been corrected. Below is how I have them configured, yours may already be that but you will need to check.
<!--Extra css load for this layout-->
<stylesheets>
<file>css/handheld/layout.css</file>
<file>css/handheld/template.css</file>
<file>css/handheld/iphone.css</file>
</stylesheets>May 4, 2011 at 6:20 pm #389825Thank you a lot phill
June 16, 2011 at 5:32 pm #396733How can I disable the mobile site?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
bkmja Friendbkmja
- Join date:
- June 2010
- Posts:
- 96
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 25
- Thanked:
- 1 times in 1 posts
July 18, 2011 at 5:18 am #401582<em>@phill luckhurst 237538 wrote:</em><blockquote>The css for the mobile section is located in templates>ja_portfolio>css>handheld
However we have to create some css for your logo in there and call it. First add the following code to templates>ja_portfolio>css>handhelp>template.css
h1.logo, div.logo-text {
float: none;
margin: 0 auto;
}
h1.logo {
height: 34px;
width: 200px;
}
h1.logo a {
background: url("../../images/logo.png") no-repeat scroll center center transparent;
display: block;
height: 34px;
width: 200px;
}changing the logo.png bit as required.
Then we need to make sure it is actually called so we need to go into the template manager and in the layouts tab edit the iphone layout and the handheld layout to make sure the css is called. Look for the stylesheets definitions in those two edits and in my older copy of portfolio the paths are incorrect but that may have been corrected. Below is how I have them configured, yours may already be that but you will need to check.
<!--Extra css load for this layout-->
<stylesheets>
<file>css/handheld/layout.css</file>
<file>css/handheld/template.css</file>
<file>css/handheld/iphone.css</file>
</stylesheets>
</blockquote>Hi,
Been playing with this. No changes needed for layouts. In fact adding the iphone.css file was making the layout go nuts for both handheld layouts, picking up some mods from the site css. What I don’ get is that I see the override path for handheld, but not iphone. It’s like iphone is missing a template.css file. Had to edit the T3 core for now until I figure out what is going on.
Any ideas? Thanks in advance.
-
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by bkmja 13 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum