Das wars.
Olaf, Du bist mein Held!
Vielen, vielen Dank.
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenDas wars.
Olaf, Du bist mein Held!
Vielen, vielen Dank.
Wenn der Blog aufgerufen wird, erscheint der letzte Beitrag. Z.Zt. noch ein Beispieltext. Wenn jetzt eine statische Seite (die vier unter dem Punkt Navigation) aufgerufen wird, soll diese natürlich dort erscheinen, wo sonst die Beiträge stehen, nämlich rechts neben der Sidebar. Die Seiten werden bei mir unter Firefox 2 und unter Explorer 6 unterhalb des Suchfeldes angezeigt.
Zur Verdeutlichung habe ich ein Bildschirmfoto angehängt.
Hallo,
ich muß mein Problem noch einmal an die Luft holen, weil ich wirklich nicht weiterkomme. Möglicherweise ein Fehler in der CSS-Datei?
Ich wäre für Hilfe wirklich sehr dankbar.
Es handelt sich um diese Seite.
Das Problem habe ich oben schon geschildert. Die statischen Seitem werden ganz unten angezeigt.
Der Code der Sidebar:
<div class="top"></div>
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<li><h2>Navigation</h2>
<ul><?php wp_list_pages('title_li=0' ); ?></ul></li>
<li><h2>Kategorien</h2>
<ul><?php wp_list_cats(); ?></ul></li>
<li><h2>Archiv</h2>
<ul><?php wp_get_archives('type=monthly'); ?></ul></li>
<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
<?php wp_meta(); ?>
</ul></li>
<li><h2>Search</h2>
<ul><li>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="s" id="s" size="15" /><br />
<input type="submit" value="<?php _e('Search'); ?>" />
</form></li></ul></li>
<?php endif; ?>
</ul>
Alles anzeigen
CSS:
BODY {
background-color: white;
font-family: Verdana, tahoma,Arial, Helvetica, sans-serif;
font-size: 10pt;
color: black;
margin:0;
}
/* GENERIC STYLES */
a img {border: 0px}
abbr, acronym {border-bottom: 1px dashed #404040; cursor: help;}
strong, b { font-weight:bold;}
em, i { font-style:italic;}
h1, h2, h3, h4 {margin: 0; font-size: 16px; letter-spacing: 4px;}
h1, h3, h4 {color: white; padding:0;}
hr {color: #d2c4ce; background-color: #fff; text-align:center; margin: 15px 0 15px 0;}
a, a:visited { color: #5d3952; text-decoration: none;}
a:hover {color: #5d3952; text-decoration: underline;}
/* STRUCTURE */
#page {
width: 800px;
margin-left: auto;
margin-right: auto;
}
#frame {
float: left;
background: url(images/frame.jpg) repeat-y;
width: 800px;
}
#footer_frame {
width 100%;
float:left;
}
#main {
margin: 35px 0 0 0;
width: 460px;
overflow:hidden;
}
.info {
text-align:center;
font-family: Georgia, "Times New Roman", serif;
color: #808080;
font-size: 14px;
letter-spacing: 2px;
text-transform: uppercase;
}
.title {
color: #5d3952;
font: italic 16pt Georgia;
font-size: 40px;
padding-top: 50px;
text-align: center;
letter-spacing: 1px;
}
#content { margin: 50px 0 0 0;}
#menu li {list-style: none; margin:0; padding-bottom: 10px;}
#menu {
float: left;
width: 337px;
margin:0;
overflow:hidden;
}
.top {
background: url(images/top.jpg) no-repeat;
height: 326px;
width: 337px;
}
#menu ul {
color: #000;
width: 239px;
overflow:hidden;
padding-left: 51px;
list-style-type: none;
margin: 0 0 20px 0;
}
#menu ul li {
line-height: 130%;
letter-spacing: 0.1em;
margin-top: 10px;
padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/
}
#menu ul ul {
font-variant: normal;
background: #4e3e49;
font-weight: normal;
list-style-type: none;
text-align: left;
margin:0; padding:0;
}
#menu ul ul li { font-size: 8pt; padding-left: 5px;}
#menu ul ul li a { color: #d2c4ce; text-decoration: none;}
#menu ul ul li a:hover {background:#d2c4ce; color: black;}
#menu ul ul ul.children {font-size: 8pt; padding-left: 3px; border:0px;}
#menu h2 {
font: italic 12pt Georgia;;
color: #8b7585;
padding: 5px 0 5px 2px;
font-weight: normal;
letter-spacing: 1px;
list-style: none;
margin:0;
}
/* Formatting */
.main_date {
font:bold italic 12pt Georgia;
letter-spacing: 1px;
color: #ebe5eb;
}
.main_title {
font-family : georgia, times new roman, serif;
color: #4E3E49;
font-size : 18px;
text-transform : uppercase;
}
.main_post {line-height: 130%; margin-bottom: 30px;}
.main_post img {float: left; padding: 6px;}
.main_post a:link, .main_post a:active, .main_post a:visited{font-weight: bold;}
.main_post ul, .main_post ol { margin: 0 0 1.5em 40px; }
.main_post li { margin: 0 0 0.5em 0;}
.main_post ul li ul, .main_post ul li ol, .main_post ol li ul, .main_post ol li ol { margin: 0.5em 0 0.5em 30px; }
.main_post dl { margin: 0 0 1.5em 0; }
.main_post dt { font-weight: bold; }
.main_post dd { margin: 0 0 1.5em 20px; }
.main_feedback {color: #000; font-size: 8pt;}
.navi {text-align: right; padding: 5px;}
blockquote {color: #766471; line-height: 130%;}
form {margin:0px; padding:0px;}
#s {
border:1px solid #4e3e49;
background: #e9e1e9;
width: 75%;
}
#b {
border:1px solid #4e3e49;
background: #e9e1e9;
margin-top:5px;
}
#button {
border:1px solid #4e3e49;
background: #e9e1e9;
margin-top:5px;
}
INPUT{
border:1px solid #4e3e49;
background: #e9e1e9;
margin-bottom: 20px;
}
TEXTAREA{
border:1px solid #4e3e49;
background: #e9e1e9;
width:455px;
}
#wp-calendar {empty-cells: show;font: 10px verdana, arial, helvetica, sans-serif;color: #808080;margin: 0;width: 98%;;}
#wp-calendar #next a{padding-right: 10px;text-align: right;color: #808080;}
#wp-calendar #prev a{padding-left: 10px;text-align: left; color: #808080;}
#wp-calendar a{ color: #b1a7a7;display: block;text-decoration: none;}
#wp-calendar a:hover{color: #404040; background: #cac6c6;text-decoration: none;border: none;}
#wp-calendar caption{font-family:verdana, arial, helvetica, sans-serif; font-size: 11px; font-weight:bold; letter-spacing: 1px; color: #404040; }
#wp-calendar td{color: #404040;font: 10px verdana, arial, helvetica, sans-serif;letter-spacing: normal;padding: 1px 0;text-align: center;}
#wp-calendar td.pad:hover{color: #404040;background: #cac6c6;text-decoration: none;border: none;}
#wp-calendar #today{background: #cac6c6;color: #404040;}
#wp-calendar th{font-style: normal;text-transform: capitalize;}
<!-- /* Comments Form Styles */ -->
#comments-post { margin: 0 15px 0 15px;}
h3#respond{ color: #4e3e49; font-size: 18px;}
h3#comments{ color: #4e3e49; font-size: 14px;}
.commentmetadata{
text-align:right;
padding-right: 5px;
font-size: 10px;
color: #4e3e49;
}
.commentmetadata a{ text-decoration: none; color: #4e3e49;}
cite {
font-size: 11px;
font-weight: bolder;
font-style: normal;
background: url(images/commentbubble.gif) no-repeat;
padding-left: 15px;
height: 18px;
}
cite a{
text-decoration: none;
color: 4e3e49;
border-bottom: 1px solid #4e3e49;
}
cite a:hover{
background: White;
color: #e9e1e9;
}
p, li, .feedback {
font-size: 12px;
}
.commentlist li {
background: #e9e1e9;
padding-bottom: 15px;
margin-bottom: 10px;
border-bottom: 1px dotted #887883;
}
.commentlist li.alt{
background: #dfdbde;
padding-bottom: 15px;
margin-bottom: 10px;
border-bottom: 1px dotted #887883;
}
ul.post-meta {
list-style: none;
}
ul.post-meta span.post-meta-key {
font-weight: bold;
}
/* fuss - fuss*/
#footer {
margin:0;
padding: 5px 5px 5px 37px;
text-align:left;
width: 100%;
background:#766471; color: #d2c4ce;
}
#footer a, #footer a:visited, #footer a:active {color: white; text-decoration: none}
#footer a:hover {color: white; text-decoration: underline;}
Alles anzeigen
Und zuletzt page.php:
<?php get_header();?>
<div id="page">
<div id="frame">
<div id="menu">
<?php get_sidebar(); ?>
</div>
<div id="main">
<div class="title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></div><hr /><div class="info"><?php bloginfo('description'); ?> </div>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class="main_title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<div class="main_post">
<?php the_content(__('» Read The Rest')); ?>
</div>
<hr />
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div></div>
</div></div>
<div id="footer_frame"><div id="footer"><?php get_footer(); ?></div></div>
</body></html>
Alles anzeigen
Das wars leider nicht. Ich habe jetzt noch den Code der Original-Sidebar
(ab Meta eingefügt und zusätzlich alle Plugins, die ich schon mal installiert
hatte, wieder deaktiviert.
Geht leider immer noch nicht.
Ich vergaß zu erwähnen, das es mir an Erfahrung mangelt.
Könnte also auch ein kapitaler Anfängerfehler sein.
Stefan
Bitteschön:
<!-- begin sidebar -->
<div class="top"></div>
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<li><h2>Navigation</h2>
<ul><?php wp_list_pages('title_li=0' ); ?></ul></li>
<li><h2>Termine</h2>
<ul><?php ec3_get_events(5); ?></ul></li>
<li><h2>Kategorien</h2>
<ul><?php wp_list_cats(); ?></ul></li>
<li><h2>Archiv</h2>
<ul><?php wp_get_archives('type=monthly'); ?></ul></li>
<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><h2>Search</h2>
<ul><li>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="s" id="s" size="15" /><br />
<input type="submit" value="<?php _e('Search'); ?>" />
</form></li></ul></li>
<?php endif; ?>
</ul>
<!-- end sidebar -->
Alles anzeigen
Stefan
Hallo,
nachdem ich mit Hilfe der Doku das erste Problem lösen konnte, taucht jetzt eins auf, bei dem ich für ein
wenig Hilfe sehr dankbar wäre.
Bei dem Original Theme dieser Seite waren ursprünglich keine statischen Seiten in der Sidebar vorgesehen.
Ich habe eine Navigation mit wp_list_pages in die Sidebar integriert, weiß (und finde) jetzt aber nicht, wie ich
es hinbekomme, das die Seiten nicht unterhalb der Sidebar sondern da angezeigt werden, wo auch die Beiträge stehen.
Für einen Tip wäre ich sehr dankbar.
WP ist 2.1
Stefan