Hallo,
ich hab versucht den Abstand zwischen dem linken Rand und dem Carousel/Slider etwas zu vergrößern (der Abstand soll nur 1 oder 2 Leerzeichen sein), aber ich krieg das einfach nicht hin. ich hab versucht ein Leerzeichen vor dem Carousel einzufügen und andere Sachen. Ich hoffe das mir jemand weiterhelfen kann.
Meine Website: movie-fans.de
Ich hab den Code vom Carousel rot gemacht:
ZitatAlles anzeigen<?php get_header(); ?>
<div id="content">
<div id="center"><?php if((!is_paged()) && (get_option('cover_wp_fp_layout', 'magazine') == 'magazine'))
{ ?>
[COLOR=Red]<h1 align="right">
<?php print do_shortcode("[carousel name='name']"); ?> </h1>
[/COLOR]<?php $sticky = get_option('sticky_posts'); $args = array('post__in' => $sticky); ?>
<?php query_posts($args); ?>
<?php if((have_posts()) && (!empty($sticky))) : ?>
<div id="sticky">
<h3><?php _e('Announcements','cover-wp') ?></h3>
<?php while(have_posts()) : the_post(); ?>
<?php $words = 75;
$content = get_the_excerpt();
$excerpt = explode(' ',$content); ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to','cover-wp') ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="postmeta" style="margin-bottom:2px;"><?php the_time(__('F jS, Y','cover-wp')); ?> | <?php comments_popup_link(__('Add a Comment','cover-wp'), __('1 Comment','cover-wp'), __('% Comments','cover-wp')); ?></p>
<div class="the_content">
<?php
$words = display_thumbnail(230,165,$words,55);
if(count($excerpt) > $words) $count = $words;
else $count = count($excerpt); ?>
<p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> <a href="<?php the_permalink() ?>"><?php _e('Read entire article','cover-wp') ?> »</a></p>
</div><!-- /the_content -->
<?php endwhile; ?></div><!-- /sticky -->
<?php endif; ?>
<?php wp_reset_query(); ?>
<div id="headline">
<h3><?php _e('Headline','cover-wp') ?></h3>
<?php query_posts("caller_get_posts=1&showposts=1"); $i = 1; ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php $words = 75;
$content = get_the_excerpt();
$excerpt = explode(' ',$content); ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to','cover-wp') ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="postmeta" style="margin-bottom:2px;"><?php the_time(__('F jS, Y','cover-wp')); ?> | <?php comments_popup_link(__('Add a Comment','cover-wp'), __('1 Comment','cover-wp'), __('% Comments','cover-wp')); ?></p>
<div class="the_content">
<?php
$words = display_thumbnail(230,165,$words,55);
if(count($excerpt) > $words) $count = $words;
else $count = count($excerpt); ?>
<p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> <a href="<?php the_permalink() ?>"><?php _e('Read entire article','cover-wp') ?> »</a></p>
</div><!-- /the_content -->
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<?php else: ?>
<h2 class="center"><?php _e('No Entries Found','cover-wp') ?></h2>
<p class="center"><?php _e('There are no entries in this blog.','cover-wp') ?></p>
<?php endif; ?>
</div><!-- /headline -->
<div id="featured">
<h3><?php _e('Featured','cover-wp') ?></h3>
<?php query_posts("caller_get_posts=1&showposts=3&category_name=".get_option('cover_wp_featured_cat', 'Featured')); $i = 1; ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php $words = 17;
$content = get_the_excerpt();
$excerpt = explode(' ',$content); ?>
<div class="spost">
<h2><a href="<?php echo the_permalink(); ?>" title="<?php _e('Permanent Link to','cover-wp') ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php
$words = display_thumbnail(95,80,$words,15);
if(count($excerpt) > $words) $count = $words;
else $count = count($excerpt); ?>
<p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> <a href="<?php echo get_permalink($post->ID) ?>"><?php _e('Read more','cover-wp') ?> »</a></p>
</div><!-- /spost -->
<div class="spbottom"></div>
<?php endwhile; ?>
<?php else: ?>
<h2 class="center"><?php _e('No Featured Articles','cover-wp') ?></h2>
<p class="center"><?php _e('Create a category called "Featured". Articles in that category will be shown here.','cover-wp') ?></p>
<?php endif; ?>
</div><!-- /featured -->
<div id="popular">
<h3><?php _e('Popular','cover-wp') ?></h3>
<?php
if ( (get_bloginfo('version') >= 2.9) && (get_option('cover_wp_popular') == 'comments') )
{
query_posts("caller_get_posts=1&showposts=3&orderby=comment_count "); $i = 1; ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php $words = 17;
$content = get_the_excerpt();
$excerpt = explode(' ',$content); ?>
<div class="spost">
<h2><a href="<?php echo the_permalink(); ?>" title="<?php _e('Permanent Link to','cover-wp') ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php
$words = display_thumbnail(95,80,$words,15);
if(count($excerpt) > $words) $count = $words;
else $count = count($excerpt); ?>
<p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> <a href="<?php echo get_permalink($post->ID) ?>"><?php _e('Read more','cover-wp') ?> »</a></p>
</div><!-- /spost -->
<div class="spbottom"></div>
<?php endwhile; ?>
<?php else: ?>
<h2 class="center"><?php _e('No Featured Articles','cover-wp') ?></h2>
<p class="center"><?php _e('Select a category from the Options Page or create a category called "Featured". Articles in that category will be shown here.','cover-wp') ?></p>
<?php endif;
} else display_popular(); ?>
</div><!-- /popular -->
<div id="latest">
<h3><?php _e('Latest','cover-wp') ?></h3>
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
$ppp = get_option('posts_per_page');
$ppp = $ppp - 1;
query_posts("caller_get_posts=1&paged=$page&showposts=$ppp&offset=1"); ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php $words = 60;
$content = get_the_excerpt();
$excerpt = explode(' ',$content); ?>
<div class="spost">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to','cover-wp') ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php
$words = display_thumbnail(150,105,$words,55);
if(count($excerpt) > $words) $count = $words;
else $count = count($excerpt) ?>
<p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> <a href="<?php the_permalink() ?>"><?php _e('Read entire article','cover-wp') ?> »</a></p>
</div><!-- /spost -->
<div class="spbottom"></div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<div class="left"><?php previous_posts_link(__('« Previous Page','cover-wp')) ?></div>
<div class="right"><?php next_posts_link(__('Next Page »','cover-wp') ) ?></div>
<?php } ?>
</div>