Hi, ich habe ein Wordpress Blog http://www.sky-wrestling.de und da habe ich mir vor kurzen ein neues Design geholt. Jetzt habe ich ein Bild dadrin, was ich raushaben will und mit ein anderen ersetzen will. Dieses Dirt Coalition GT will ich raushaben und in das http://i25.tinypic.com/1mc8m.jpg ersetzen. Wie kann ich das machen?
Hier der php Code für meine Seiten-Template, wenn das der falsche Code ist bitte sofort melden.
PHP
<?php
# WIDGET: Sidebar
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Top Sidebar',
'before_title' => '<h2>',
'after_title' => '</h2>',
'before_widget' => '<div class="box">',
'after_widget' => '</div>',
));
# Displays a list of pages
function dp_list_pages() {
global $wpdb;
$querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.post_title ASC";
$pageposts = $wpdb->get_results($querystr, OBJECT);
if ($pageposts) {
foreach ($pageposts as $post) {
?><li><a href="<?php echo get_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a></li><?php
}
}
}
# Displays post image attachment (sizes: thumbnail, medium, full)
function dp_attachment_image($postid=0, $size='thumbnail', $attributes='') {
if ($postid<1) $postid = get_the_ID();
if ($images = get_children(array(
'post_parent' => $postid,
'post_type' => 'attachment',
'numberposts' => 1,
'post_mime_type' => 'image',)))
foreach($images as $image) {
$attachment=wp_get_attachment_image_src($image->ID, $size);
?><img src="<?php echo $attachment[0]; ?>" <?php echo $attributes; ?> /><?php
}
}
# Removes tags and trailing dots from excerpt
function dp_clean($excerpt, $substr=0) {
$string = strip_tags(str_replace('[...]', '...', $excerpt));
if ($substr>0) {
$string = substr($string, 0, $substr);
}
return $string;
}
# Displays the comment authors gravatar if available
function dp_gravatar($size=50, $attributes='', $author_email='') {
global $comment, $settings;
if (dp_settings('gravatar')=='enabled') {
if (empty($author_email)) {
ob_start();
comment_author_email();
$author_email = ob_get_clean();
}
$gravatar_url = 'http://www.gravatar.com/avatar/' . md5(strtolower($author_email)) . '?s=' . $size . '&d=' . dp_settings('gravatar_fallback');
?><img src="<?php echo $gravatar_url; ?>" <?php echo $attributes ?>/><?php
}
}
# Retrieves the setting's value depending on 'key'.
function dp_settings($key) {
global $settings;
return $settings[$key];
}
?>
Alles anzeigen
ICH WÄRE SEHR DANKBAR, WENN IHR SCHNELL EINE LÖSUNG FINDET.
Mfg King of Kingz