danke werde es gleich mal ausprobieren.
Beiträge von ironia
-
-
Hallo würde gerne den Login in den Header bringen, wie das mit der Suche geht weiß ich aber wie geht das nun mit dem Login und wie bekomme ich das gleich mit eigener Grafik hin.
-
fehler behoben geht alles danke und closed
-
[h=3]Eigenes Template Worpress geht nicht[/h] Hallo habe mir vor kurzen ein Template erstellt dises Löst beim aktievieren erstmal keine fehler aus. will man aber auf die start seite löst es den internalen Server error 500 aus.
Wichtige Daten.Webhoster: Strato Web Paket xl
Php Version des Template: PHP5Schreibt mir was ihr für daten und infos Braucht, Anmerkung Template hat noch keine Bilder oder so.
bitte um Hilfe beim lösen des Problems.Fehler ausgabe auf der seite nach dem aktivieren vom thempalete
Parse error: syntax error, unexpected ';' in /mnt/web7/b2/99/53527499/htdocs/WordPress_01/wp-content/themes/ironialp/index.php on line
Index.php
PHP
Alles anzeigen<?php get_header(); ?> <?php if (have_posts()) : while (have_posts(); ?> <div class"article"> <h2><a href="<?php the_permalink() ?>"><?php the_title(}; ?></a></h2> <div class="entry"> <?php if (has_post_thumbnail()) ( the_post_thumbnail('thumbnails'); ) ?> <?php> the_content(); ?> </div> <!-- .entry --> </div> <!-- .article --> <?php endwhile; ?> <q align="center"><?php next_popoata_link('« Ältere Beiträge') ?> | <?php previous_poata_link('Neuere Beiträge »') ?></p> <?php endif; ?> </div><!-- #content --> <?php get_sidebar(); ?> <?php> get_footer(); ?>header.php
PHP
Alles anzeigen<!DOCTYPE html> <html lang="de"> <head> <meta chareat="utf-8" /> <titel><?php wp_title(); ?> - <?php bloginfo('name'); ?></title> <Link rel="stylesheet" href="<?php bloginfo('styleaheet_url'); ?>" type="text/css" media="screen" /> <Link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id=wrapper"> <div id="header"> <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1> <span id=”description”><?php bloginfo('description'); ?></span> <?php wp_nav_menu( array( 'theme_location' => 'menu', // Gibt Ort für das Hauptmenü an 'menu_class' => 'dropdown', //Fügt Klasse für Dropdowns hinzu 'container_id' => 'navwrap', //Legt ID von dem Container fest, der das komplette Menü umgibt 'fallback_cb' => 'wp_page_menu' ) ); ?> <div class="inner"> </div><!-- .inner --> </div><!-- #header --> <div id="main"> <div class="inner"> <div id="content">404.php
PHP
Alles anzeigen<?php get_header(); ?> <h2>404 - Seite nicht gefunden</h2> <p>Diese Seite existiert nicht</p> </div><!-- #content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Category.phpPHP
Alles anzeigen<?php get_header(); ?> <h1 class="category-title"><?php printf( __( '<span>Kategorie: %s</span>'), '<div class="category-name">' . single_cat_title( '', false ) . '</div>' ); ?></h1> <?php $category_description = category_description(); if ( ! empty( $category_description ) ) echo '<div class="archive">' . $category_description . '</div>'; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> </div> <?php endwhile; endif; ?> </div><!-- #content --> <?php get_sidebar(); ?> <?php get_footer(); ?>comments.php
PHP
Alles anzeigen<div id="comments"> <?php foreach ($comments as $comment) : ?> <div class="comment" id="comment-<?php comment_ID() ?>"> <small class="commentData"><?php comment_author_link() ?> <strong>|</strong> am <?php comment_date('j. F Y') ?> um <?php comment_time('H:i') ?> Uhr</small> <?php comment_text() ?> <?php if ($comment->comment_approved == '0') : ?> <strong>Dein Kommentar wird geprüft und demnächst freigegeben</strong> <?php endif; ?> </div><!-- .comment --> <?php endforeach; /* end for each comment */ ?> </div><!-- #comments --> <div id="comment_form"> <h3 id="respond">Kommentar schreiben</h3> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <p> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" /> <label for="author">Name</label> </p> <p> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email">Email <small>(wird nicht veröffentlicht)</small></label> </p> <p> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url">Webseite</label> </p> <p> Kommentar <textarea name="comment" id="comment" style="width: 100%;" rows="10" tabindex="4"></textarea> </p> <p> <input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar abschicken" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> </div> <!-- #comment_form -->Footer.php
PHP
Alles anzeigen</div> <!-- .inner --> </div><!-- #main --> <div id="footer"> <div class="inner"> <?php dynamic_sidebar( 'first-footer-widget-area' ); ?> </div><!-- .inner --> </div><!-- #footer --> </div><!-- #wrapper --> <?php> wp_footer(); ?> </body> </html>function.php
PHP
Alles anzeigen<?php function register_my_menus() { register_nav_menus( array('menu' => __( 'Header Menu' ) ) ); } add_action ('init', 'register_my_menus'); function widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'yourtheme' ), 'id' => 'primary-widget-area', 'description' => __( 'Sidebar Widget Bereich', 'yourtheme' ), 'before_widget' => '<div id="%1$s" class="widget-container %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'yourtheme' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'yourtheme' ), 'before_widget' => '<div id="%1$s" class="widget-container %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } add_action( 'widgets_init', 'widgets_init' ); add_theme_support( 'post-thumbnails' ); if ( function_exists( 'add_image_size' ) ) { add_image_size( 'thumbnails', 726, 250, true ); // Artikelbild im Artikel add_image_size( 'start-thumbnail', 230, 79, true ); // Artikelbild auf der Startseite add_image_size( 'related-post-thumbnail', 230, 160, true ); // Artikelbild bei "Ähnliche Artikel" } ?>Page.php
PHP
Alles anzeigen<?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> </div><!-- .entry --> <?php comments_template(); ?> <?php endwhile; endif; ?> </div><!-- #content --> <?php get_footer(); ?>
search.phpPHP
Alles anzeigen<?php get_header(); ?> <h2 class="category-title"> <span>Suchergebnisse für</span> <div class="category-name"><?php echo $s ?></div></h2> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div id="meta"> <span>geschrieben am: <?php the_date('d.m.Y'); ?> von: <?php the_author(); ?> in Kategorie(n): <?php the_category(', '); ?></span> </div> <div class="entry"> <?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnails'); } ?> <?php the_content(); ?> </div> <?php comments_template(); ?> <?php endwhile; endif; ?> </div><!-- content --> <?php get_sidebar(); ?> <?php get_footer(); ?>sidebar.php
singel.php
PHP
Alles anzeigen<?php get_header(); ?> <div id="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <div id="meta"> <span>geschrieben am: <?php the_date('d.m.Y'); ?> von: <?php the_author(); ?> in Kategorie(n): <?php the_category(', '); ?></span> <?php the_tags('<span>Tags: </span>', ', ', '<br />'); ?> </div> <div class="entry"> <?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnails'); } ?> <?php the_content(); ?> </div> <?php endwhile; endif; ?> </div><!-- content --> <?php get_sidebar(); ?> <?php get_footer(); ?>style.css
Code
Alles anzeigen/* Theme Name: IroniaLp Style Theme URI: http://ironialp.de Description: Blog Theme für meinen WordPress Blog Author: Ironia Lets Plays Author URI: http://ironialp.de */ * { margin: 0; padding: 0; } body { color: #222; background: #f5f5f5; } #wrapper { background: #fff; } #header { height: 160px; padding: 20px; } #content { width: 520px; padding: 10px; float: left; } .page #content ( width; 980px ) #sidebar { width: 270px; padding: 10px; float: left; } #footer { clear: both; height: 100px; padding: 20px 0; } .inner { margin: 0 auto; width: 1000px; }