Hallo
Ich bin neu hier. :confused:
Ich habe ein eigenes Template in mein fiver-theme in wp-content - eigefügt.
ich bin Code-unerfahren. ich möchte gerne ein Hintergrund-Bild in das eigene Template einsetzen.
Zwei Zeilen Code habe ich irgendwo gegoogelt, kann aber nicht herausfinden, wie / wo das Bild rein muß/kann.
Das sieht so aus:
PHP
<?php
/*
Template Name: neuestemplate
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<div id="background">
<img src="<?php bloginfo('template_url' ); ?>/images/bg_body.jpg" alt="background"
<?php the_title(); ?></a></h2>
<?php the_content('Read the rest of this entry »'); ?>
<hr class="clearfix" />
<?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>
<p class="postmetadata"><?php edit_post_link('Edit', '', ' | '); ?>
<?php comments_popup_link('Share your thoughts', '1 Comment', '% Comments'); ?></p>
</article>
<?php endwhile; ?>
<ul class="prevnext">
<li><?php next_posts_link('< Older Entries') ?></li>
<li><?php previous_posts_link('Newer Entries >') ?></li>
</ul>
<?php else : ?>
<article class="noposts">
<h2>404 - Content Not Found</h2>
<p>We don't seem to be able to find the content you have requested - why not try a search below?</p>
<?php get_search_form(); ?>
</article>
<?php endif; ?>
<?php get_footer(); ?> <?php wp_get_archives(array('type' => 'monthly')); ?>
</ul>
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_categories(); ?>
</ul>
</div>
<?php get_footer(); ?>
Alles anzeigen
An welche Stelle (zwischen welche zeichen) setze ich den link zum Bild ein?
Herzlichen Dank für eine Antwort.
Kai