View Full Version : How to add some code to the minimalistic template
Hi all,
I have a short question.
The minimalistic-template starts with the search-box, the current date etc.
Is it possible to add some code (e.g. links or a banner or text) permanently above this?
Greetings,
Lars
Dave Baker
05-05-2007, 12:59 AM
Lars,
Please try it:
***Open templates/yourTemplate/header.tpl and find code***
<head>
<title>{$title} {$config.suffix}</title>
<meta http-equiv="Content-Type" content="text/html;charset={$config.charset}" />
<base href="{$config.base}{$config.dir}" />
<link rel="shortcut icon" href="{$config.base}{$config.dir}{$config.admin}img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="{$templates}/css/style.css" />
{if $category.id > 0}
<link rel="alternate" type="application/rss+xml" title="{$category.title|escape:"html"}" href="{$config.base}{$config.dir}plugins/rss/feed.php?id={$category.id}" />
{/if}
{if $rss}
<link rel="alternate" type="application/rss+xml" title="{$category.title|escape:"html"}" href="{$config.base}{$config.dir}plugins/rss/feed.php?list={$rss}" />
{/if}
<meta name="description" content="{$description|escape:"html"}" />
<meta name="keywords" content="{$keywords|escape:"html"}" />
<script type="text/javascript" src="{$templates}/js/jquery.js"></script>
</head>
<body>
***Below add***
<div style="position:absolute; left:500px; top:10px;">links or a banner or text</div>
Lars,
Please try it:
(...)
Hi Dave, thank you.
This was the correct place to add some code. Unfortunately, my code is added (a table with some content - links, a small gif, etc.) and visible, but the search-box, the esyndicat-logo etc. is still at the same place, so my new code and the old one are overlapping themselves.
What I would need now is the information how the old code can be moved down.
Are there any ideas?
Greetings,
Lars
Dave Baker
05-10-2007, 04:19 PM
Lars,
Try to add:
<div style = "text-align:center";>links or a banner or text</div>
instead of above code
Hi Dave
Thanks again.
But unfortunately, that also does not work.
Featured Links, Statistics, Categories etc. are moved down correctly, but the menu bar with the esyndicat-logo, and the home, search, new links etc. menu entries still remain at the same place.
Obviously, this menu bar is controlled differently. If it is also possible to move this menu bar downwards, I guess the problem would be solved.
Any ideas?
Greetings,
Lars
Dave Baker
05-11-2007, 12:48 AM
Lars,
Try to adjust it via css file
***Open templates/yourTemplate/css/style.css and find code***
div.logo
{
position: absolute;
top: 30px;
left: 1px;
}
div.top-menu
{
position: absolute;
top: 88px;
left: 202px;
text-transform: uppercase;
padding: 10px 0px 20px 0px;
}
div.date
{
position: absolute;
right: 20px;
top: 22px;
color: #666666;
line-height: 15px;
font-size: 1.0em;
font-weight: normal;
padding: 0px;
}
div.lang-switch
{
position: absolute;
left: 10px;
top: 15px;
line-height: 15px;
font-size: 0.85em;
font-weight: normal;
padding: 0;
margin: 0;
}
find appropriate values for the red numbers in the code.
Dave,
again: GREEAAAT!
Adding the search-form to your modifications, everything works perfectly for me!
Thank you so much!
Greetings,
Lars
Dave Baker
05-14-2007, 05:02 PM
You're welcome Lars!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.