Wsparcie » Rozmaitości » strona główna nie jest na środku

  • Witam
    Bardzo proszę o pilną pomoc. Coś musiałem zmienić w kodzie gdyż główna strona mojego bloga nie jest na środku a pozostałe są wyśrodkowane.
    Tak wygląda kod:

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    <div style="display:block;width:960px;height:280px;">
    <?php include 'main-slajdszou.php' ; ?>
    </div>
    
    <div id="gray-bar">
    <?php if(is_user_logged_in()) echo'<a href="wp-admin/post.php?post=555&action=edit">Edytuj</a>'; ?>
    </div>
    
    <div id="container">
    
    		<div id="left-column">
    		<div class="left-content">
    
    			<img width="84" src="<?php the_field('A_picture', 555); ?>" alt="" />
    			<h2><?php the_field('A_title', 555); ?></h2>
    			<p><?php the_field('A_content', 555); ?></p>
    			<a href="kompleksowe-prace-budowlane/">Więcej...</a>
    
    		</div>
    
    <hr style="margin-top:15px;">
    
    		<div class="left-content">
    
    			<img width="84" src="<?php the_field('B_picture', 555); ?>" alt="" />
    			<h2><?php the_field('B_title', 555); ?></h2>
    			<p><?php the_field('B_content', 555); ?></p>
    			<a href="projekty/">Więcej...</a>
    
    		</div>
    
    		</div>
    
    			<div id="center-column">
    
    				<h1><?php the_field('C_title', 555); ?></h1>
    
    				<?php include 'promocje-slajdszou.php'; ?>
    
    			<?php
    			/* Run the loop to output the posts.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-index.php and that will be used instead.
    
    			 get_template_part( 'loop', 'index' );
    
    */
    			?>
    
    			</div><!-- #content -->
    
    		<div id="right-column">
    		<div class="right-content">
    
    		<img style="margin-bottom:100px;" src="<?php the_field('D_picture', 555); ?>" alt="" />
    		<h2><?php the_field('D_title', 555); ?></h2>
    		<p><?php the_field('D_content', 555); ?></p>
    
    		</div>
    
    <hr style="margin-top:16px;">
    
    		<div class="right-content">
    
    		<img width="84" src="<?php the_field('E_picture', 555); ?>" alt="" />
    		<h2><?php the_field('E_title', 555); ?></h2>
    		<p><?php the_field('E_content', 555); ?></p>
    		<a href="doradztwo-techniczne/">Więcej...</a>
    
    		</div>
    
    </div>
    		</div><!-- #container -->
    
    <?php /*  get_sidebar(); */  ?>
    
    <?php get_footer(); ?>

    Z góry dziękuję za pomoc

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • Temat ‘strona główna nie jest na środku’ jest zamknięty na nowe odpowiedzi.