Hallo,
ich verwende seit ein paar Tagen das Theme mornig coffee
und so sollte laut Screenshot das Menü aussehen (siehe Anhang
und so schaut es bei mir aus brummelliese bloggt
Ich hab nun schon ziemlich viel ausprobiert, aber da ich nicht wirklich die Ahnung von PHP und CSS habe, kann ich den Grund einfach nicht finden.
sidebar.php
<div id="sidebar">
<div id="pen"></div><div id="sidebar-right"> <ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) { ?>
<li>
<h2><?php _e('Calendar'); ?></h2>
<?php get_calendar(); ?>
</li>
<?php wp_list_categories('show_count=1&title_li=<h2>' . __('Categories', 'default'). '</h2>'); ?>
<li>
<h2><?php _e('Archives', 'default'); ?></h2>
<?php wp_get_archives('type=monthly'); ?>
</li>
<li>
<h2><?php _e('Tags', 'default'); ?></h2>
<?php wp_tag_cloud('smallest=8&largest=18'); ?>
</li>
<li>
<h2><?php _e('Meta', 'default'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional', 'simple'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>', 'simple'); ?></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="<?php _e('XHTML Friends Network', 'simple'); ?>"><?php _e('XFN', 'simple'); ?></abbr></a></li>
<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'simple'); ?>">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
</ul>
</div><div id="sidebarend"></div></div>
Alles anzeigen
aus der style.css
/*-- Sidebar settings --*/
#sidebar {
float:right;
width:341px;
color:#000000;
margin-top:0px;
position:relative;
font-size:11px;
background-image: url(images/sidebar.jpg);
background-repeat: repeat-y;
}
#sidebar a:hover {
color: #000000;
text-decoration: none;
}
#sidebar h2 {
font-size:14px;
font-weight:bold;
margin:0;
background-image: url(images/sidebarh2.jpg);
background-repeat: no-repeat;
background-position: left bottom;
color: #000000;
padding-top: 3px;
padding-right: 0;
padding-bottom: 12px;
padding-left: 8px;
}
#sidebar ul li strong {
color:#000000;
}
#sidebar-top {
width:231px;
padding:5px;
}
.sidebar-top-box {
margin-bottom:10px;
padding:0;
}
.box-padding {
padding:7px;
}
.sidebar-top-box p {
margin-top:3px;
margin-bottom:3px;
}
#sidebar-top h2 {
margin-top:10px;
color:#000000;
}
#sidebar-top .textwidget {
margin-bottom:10px;
padding:7px;
}
#sidebar-top ul ul {
list-style-type:none;
margin-bottom:10px;
padding:10px 7px 7px 12px;
}
#sidebar-top ul ul li {
padding-left:10px;
list-style-type:none;
background-image:url(images/lidot.gif);
background-repeat:no-repeat;
background-position:left top;
padding-bottom:3px;
}
#sidebar-top ul li a {
text-decoration:none;
}
#sidebar-top .box-ads a{
text-decoration:none;
}
#sidebar-left {
float:left;
width:215px;
padding:0 10px 0 5px;
}
#sidebar #sidebar-left h2, #sidebar #sidebar-right h2 {
margin:15px 0 10px;
color: #000000;
}
#sidebar-right {
float:left;
width:153px;
padding:0 5px 0 10px;
}
#sidebar-left ul ul, #sidebar-right ul ul {
padding-left:5px;
}
html, #sidebar ul, #sidebar-wrap ul, .rel-posts ul {
margin:0;
padding:0;
}
#sidebar-right li, #sidebar-left li {
background:url(images/lidot.gif) no-repeat left top;
list-style:none;
margin:0;
padding:0 0 5px 8px;
}
#sidebar-left .children, #sidebar-right .children {
padding-top: 8px;
}
#sidebar-left ul.children li, #sidebar-right ul.children li {
padding-bottom: 3px;
padding-top: 0px;
}
#sidebar h2 a.rsswidget {
color: #000000;
text-decoration: none;
}
#sidebar .rsswidget img {
float: left;
margin-top: 2px;
margin-right: 7px;
}
Soweit ich das verstehe, nimmt die Sidebar die -Sidebar h2 - Formatierung nicht an. Kann mir jemand sagen, was falsch läuft? Was ich wo ändern muss?
Gruß Liese