Theme question
Hm. I'm not 100% sure, but I don't think we already gave your template an index.tpl, did we? If we didn't, it would be pretty circumstantial to do so just to give it a copyright footer - why don't you do that one in the sidebar using the HTML Nugget sidebar plugin? That will be shown on any page, too.
YL
YL
-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
Hi YL no I don't got a 'index.tpl' within the template dir. I can create one but what kind of code does it need to contain just the text (c) all rights reserved ?YellowLed wrote:Hm. I'm not 100% sure, but I don't think we already gave your template an index.tpl, did we? If we didn't, it would be pretty circumstantial to do so just to give it a copyright footer - why don't you do that one in the sidebar using the HTML Nugget sidebar plugin? That will be shown on any page, too.
YL
No, you'd have to copy the index.tpl from /templates/default to your theme directory (s9y_thin, if it's still called that way) and edit it like this:carlitocabana wrote:Hi YL no I don't got a 'index.tpl' within the template dir. I can create one but what kind of code does it need to contain just the text (c) all rights reserved ?
Code: Select all
{if $is_embedded != true}
<div id="footer">
<p>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></p>
</div>
YL
-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
Morning YL, I copied the index.tpl from the default template to the w9y_thin template dir. but no succes.... i don't see anything.... 
To do this with the HTML nugget how can this be done? I already got 1 nugget with a link to my portfolio. can i create a 2nd nugget and place this at the bottom (portfolio is in the middle)
To do this with the HTML nugget how can this be done? I already got 1 nugget with a link to my portfolio. can i create a 2nd nugget and place this at the bottom (portfolio is in the middle)
Last edited by carlitocabana on Fri Feb 09, 2007 10:40 am, edited 1 time in total.
-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
Well if i only paste the code you told i get a white page with an error
If i add the following code
<div id="footer">
<p>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></p>
</div>
after the code
{if $is_embedded != true}
I get the footer on top of the page
If i add the following code
<div id="footer">
<p>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></p>
</div>
after the code
{if $is_embedded != true}
I get the footer on top of the page
-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
Ouchcarlitocabana wrote:*kick* found anything?
I'm terribly sorry, I almost forgot about that one. Let's get going: Copy a fresh index.tpl from /templates/default to your template directory and edit it like this:
Code: Select all
<table id="mainpane">
<tr>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
<td id="content" valign="top">{$CONTENT}</td>
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
</tr>
<tr id="footer">
<td>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></td>
</tr>
</table>
YL
-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
Edit your index.tpl like this:carlitocabana wrote:But I like it more when it's centered. Also it's now on the left menu and stretches my left menu bar out of proportion.
Code: Select all
<tr id="footer">
<td colspan="3">© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></td>
</tr>
Code: Select all
#footer { text-align: center; }
YL
-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
OMG YellowLed you did it again hehe it's awesome 
BTW a little request....
Can the footer text be boxed (from left to right side of the page index)?
See below:
___________________________________
| FATSHARK |
| |
| |
------------------------------------------------
| footer text (c) all rights reserved etc.... |
-------------------------------------------------
BTW a little request....
Can the footer text be boxed (from left to right side of the page index)?
See below:
___________________________________
| FATSHARK |
| |
| |
------------------------------------------------
| footer text (c) all rights reserved etc.... |
-------------------------------------------------
Something like this?carlitocabana wrote:Can the footer text be boxed (from left to right side of the page index)?
Code: Select all
#footer td { padding: 1em; border-top: 1px solid #000; }-
carlitocabana
- Regular
- Posts: 38
- Joined: Tue Jan 16, 2007 5:25 pm
Damn your right againYellowLed wrote:Something like this?carlitocabana wrote:Can the footer text be boxed (from left to right side of the page index)?YLCode: Select all
#footer td { padding: 1em; border-top: 1px solid #000; }
Is there a way to get the box smaller in height perhaps?
Sure. Right now, the height of the box is determined by "padding: 1em;". Have a look at it with padding: 0.5em; or padding: 0.25em; - if even that's too much, leave out the padding line altogether.carlitocabana wrote:Is there a way to get the box smaller in height perhaps?YellowLed wrote:Code: Select all
#footer td { padding: 1em; border-top: 1px solid #000; }
YL