Bisher war ich sehr zufrieden mit eurer Unterstützung und hoffe, dass ihr mir weiter unter die Arme greiffen könnt bei meinem neuen Blog, das noch nicht Online ist und von mir gerade mit XAMPP optimiert wird.
1. Der Image-Rotator: Im alten Blog funktionierte der immer, indem ich in der header.php folgende Zeile vor </head> einfügte:
<div id="pagewrapper"><div id="page">
<img src="<?php bloginfo('template_url'); ?>/images/headerpix/header_<?php echo(rand(1,74)); ?>.jpg" width="702" height="210" alt="<?php bloginfo('name'); ?> random header image" title="<?php bloginfo('name'); ?> random header image" />
leider funktioniert das beim neuen Theme nicht mehr. Die header.php sieht dort folgendermassen aus:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<?php wp_head(); ?>
<!--Start LightboxJS2-->
<link rel="stylesheet" href="http://iwanttobelieve.ch/wordpress/wp-content/themes/peaceful-rush/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://iwanttobelieve.ch/wordpress/wp-content/themes/peaceful-rush/js/prototype.js"></script>
<script type="text/javascript" src="http://iwanttobelieve.ch/wordpress/wp-content/themes/peaceful-rush/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://iwanttobelieve.ch/wordpress/wp-content/themes/peaceful-rush/js/lightbox.js"></script>
<!--End LightboxJS2-->
</head>
<body>
<div id="outline">
<div id="header">
<div class="blogtitle">
<h1><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1><span class="description"><?php bloginfo('description'); ?></span>
</div>
</div> <!-- end of #header -->
<div id="navbar">
<ul class="menu">
<li class="<?php if ( is_home() ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>"><?php _e('Home'); ?></a></li>
<?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>
</ul>
</div> <!-- end of #navbar -->
<div id="wrapper">
<div id="content">
Alles anzeigen
Weiss einer was da nicht funktioniert, wenn ich die Zeile bei vor </head> einsetze?
2. Sind Header sowie Foooter nicht ganz bündig mit den Posts + Sidebar. Header und Footer sind länger, doch wenn ich sie kürzen möchte, verändert die sich auf der rechten Seite, doch links ist der Header bzw. Footer immernoch länger als das Postfeld mit der Sidebar. Wie kann ich links und rechts des Header/Footer gleichviel abschneiden, damit alles bündig ist?
3. Bei der Tag Funktion geb ich zwar die Stichworte bei den Posts ein, doch werden sie dann auf der Seite nicht angezeigt. Muss man da noch was hinzufügen?
Das wär's fürs erste. Hoffe ihr könnt mir helfen. :)
Hab hier noch die style.css:
[/PHP/*
Theme Name: Movie World
Theme URI: http://www.TemplatePanic.com
Description: Wordpress theme with menu in sidebar and bottom. Widget ready.
Author: Effi
Author URI: http://www.EffiHaryanti.com
Terms of Use:
- DO NOT REMOVE any of the links in the footer!
- You are free to share, to copy, distribute and transmit this theme.
- This theme is distributed for free. You are not allowed to sell this theme.
Thanks for using this theme.
*/
/*-------------------- General --------------------*/
body { margin: 0; padding: 0; background: #b7b7b7; font: 10px Verdana, Arial, Trebuchet, Sans-Serif; color: #000; text-align: left; line-height: 190%; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-style: normal; font-weight: normal; background: transparent; color: #222; }
h1 { font-size: 2.2em; }
h2 { font: 1.6em Georgia, Trebuchet, Sans-Serif; }
h3, h4, h5, h6 { font-size: 1em; }
a, a:link { color: #004a80; text-decoration: none; }
a:visited { text-decoration: none; }
a:hover, a:active { color: #004a80; text-decoration: underline; }
blockquote { margin: 10px; padding: 0px 0px 10px 50px; background: url(images/blockquote.gif) no-repeat left top; }
code{ display:block; overflow:auto; text-align:left; margin: 10px 0 10px 0; padding: 5px 10px 5px 10px; }
small { font-size: 0.8em; }
img { padding:5px; border:0; }
img.right { float: right; margin:5px 0 5px 5px; }
img.left { float: left; margin:5px 5px 5px 0; }
a img {border:none;}
.left { float: left; }
.right { float: right; }
.center { text-align: center; }
.alignleft { float: left; margin-right: 10px; }
.alignright { float: right; margin-left: 10px; }
.navigation { display:block; padding: 20px; }
/*-------------------- Layout --------------------*/
#outline { width: 975px; margin: 0 auto; padding: 0; background: #fff; font-size: 1.3em; }
#wrapper { float: left; background: #fff url(images/bg.jpg) repeat-y 0 0; width: 977px; margin: 0 !important; margin: -15px 0 0 0; /* IE hack */ padding: 0; }
/*-------------------- Header --------------------*/
#header { width: 977px; height: 250px; background: #252525 url(images/headerpix/header_2.jpg) no-repeat left top; }
#header .blogtitle { width: auto; height: 118px; }
#header h1 { padding: 20px 0 0 30px; }
#header h1 a { color: #f7f7f7; text-decoration: none; }
span.description { color: #999; padding: 0 30px 0 0; float: right; font-size: 10px; }
#navbar { clear: both; float: left; width: 977px; height: 38px; background: url(images/nav.jpg) no-repeat 0 0; }
ul.menu { float: left; margin: 0; padding: 0 15px; list-style-type: none; }
ul.menu li { float: left; }
ul.menu li a { float: left; display: block; height: 28px; padding: 3px 15px 0 15px; line-height: 24px; color: #fff; }
ul.menu li a:link, ul.menu li a:visited { color: #ccc; }
ul.menu li a:hover, ul.menu li a:active { color: #fff; }
ul.menu li.current_page_item a:link,
ul.menu li.current_page_item a:visited,
ul.menu li.current_page_item a:hover,
ul.menu li.current_page_item a:active { color: #fff; text-decoration: none; font-weight: bold; }
/*-------------------- Pages --------------------*/
#content { float: left; width: 660px; height: 100%; }
.pages { float: left; width: 630px; }
.pages-border { clear: both; width: 100%; height: 6px; }
.page-previous { float: left; padding: 10px 0 16px 30px !important; padding: 0 0 15px 30px; /* IE hack */ }
.page-next { float: right; padding: 10px 30px 16px 0 !important; padding: 0 30px 15px 0; /* IE hack */ }
.page-title { width: 530px; margin: 20px 0 0 0; }
.page-title h2.page-title-border { padding: 0 0 0 30px; line-height: 48px; color: #222;}
/*-------------------- Post --------------------*/
.post { padding: 20px 30px; background: transparent; }
.postentry { text-align: justify; }
.posttitle a:link, .posttitle a:visited, .posttitle a:hover, .posttitle a:active { color: #002a49; }
.postmeta { margin: 6px 0 ; font-size: 11px; font-family: Georgia, Trebuchet; color: #333; border-bottom: 1px #333 dotted; }
.post .title { float: left; width: 600px; }
/*-------------------- Sidebar --------------------*/
#sidebar { float: right; width: 280px; margin-right: 20px; padding: 0; font-size: 11px; }
#sidebar h2 { font-size: 1.4em; list-style-type: none; color:#222; height: 30px; margin: 16px 0 6px 0; padding: 3px 0 3px 3px; background: url(images/sidebar-title.gif) no-repeat; }
#sidebar p { clear: both; margin: 0; padding: 0 0 20px 10px; }
#sidebar form { clear: both; margin: 0; padding: 0 0 20px 10px; }
#sidebar ul { clear: both; margin: 0; padding: 0 0 20px 25px; list-style-type: square; }
#sidebar ul li { clear: both; }
#sidebar #linkcat-2 { list-style-type: none; }
#sidebar #linkcat-2 h2 { background: none; color: #666; }
#sidebar #linkcat-2 ul { background: none; }
.searchform { width: 280px; height: 20px; text-align: left; }
input#s { width: 250px; height: 18px; margin: 5px 0 0 1px !important; margin: 4px 0 0 1px; /* IE hack */ padding: 1px 0 0 2px; border: 1px solid #999; background: #e3e3e3; }
/*-------------------- Footer --------------------*/
#footer { clear: both; height: 87px; background: #252525; width:977px; color: #ccc; text-align: right; }
#footer p { margin: 0; padding: 23px 25px; font-size: 1em; line-height: 150%; }
#footer p a:link, #footer p a:visited { color: #f2f2f2; }
#footer p a:hover { color: #fff; }]
Alles anzeigen