Hallo,
ich verwende das Theme "Mystique" und würde gerne die thumbnails in der artikelvorschau deaktivieren.
habe in der core.php etwas gefunden:
Code
function mystique_post_thumb($size = 'post-thumbnail', $post_id = false){
global $post, $id;
$post_id = (int)$post_id;
if (!$post_id) $post_id = $id;
$image = '';
if (has_post_thumbnail($post_id)) $image = get_the_post_thumbnail($post_id, $size);
if(get_mystique_option('post_thumb_auto') && !$image): // get the 1st image
$attachments = get_children(array('post_parent' => $post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID'));
if($attachments):
$attachment = array_shift($attachments);
$image = wp_get_attachment_image($attachment->ID, $size);
endif;
endif;
if($image && !get_post_meta($post->ID, 'asides', true)):
echo '<a class="post-thumb size-'.$size.' alignleft" href="'.get_permalink($post_id).'">'.apply_filters("mystique_post_thumbnail", $image).'</a>';
return true;
endif;
return false;
}
Alles anzeigen
wenn ich nun die zeile:
Code
echo '<a class="post-thumb size-'.$size.' alignleft" href="'.get_permalink($post_id).'">'.apply_filters("mystique_post_thumbnail", $image).'</a>';
lösche werden keine thumbnails mehr angezeigt, jedoch bleibt die zeile:
18. Aug Verfasst von admin unter Allgemein | Bearbeiten Keine Kommentare
so stehen! sie müsste etwas nach links verschoben werden...
was mache ich falsch ?
bitte um rat