Respuesta a: Las dos sidebar me salen juntas

Inicio Foros WordPress Themes y Diseño Las dos sidebar me salen juntas Respuesta a: Las dos sidebar me salen juntas

#26592

frankma
Participante

Lo primero muchas gracias. Vi ayer algunas plantillas de 3 columnas y deduje que por ahí deben ir los tiros, pero llevo cambiando toda la mañana cosas y no doy con ello.

Si no te importa, te pego el archivo index y el single.php, a ver si me puedes echar una mano dónde debo incluir estas dos frase:
<?php include("sidebar.php"); ?>
<?php include("sidebar2.php"); ?>

INDEX.PHP:
<?php get_header(); ?>

<!– Start the Loop. –>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<!– Display the Title as a link to the Post’s permalink. –>
<div class="title">
<h2>">
<?php the_title(); ?>
</h2>
</div>
<!– Display the Time. –>
<h3 class="date"><span class="month"><?php the_time(‘F’); ?></span> <span class="day"><?php the_time(‘jS’); ?></span><span class="year">, <?php the_time(‘Y’); ?></span></h3>
<!– Display the Post’s Content in a div box. –>
<div class="meta">
<p>Posted by
"><?php the_author(); ?>
under <?php the_category(‘, ‘); ?>
" title="Comment on <?php the_title(); ?>"><?php comments_number(); ?> | ">Permalink</p>
</div>

<div class="story">
<?php the_content(); ?>
</div>
<!– Display a comma separated list of the Post’s Categories. –>
</div>
<!– closes the first div box –>
<!– Stop The Loop (but note the "else:" – see next line). –>
<?php endwhile; else: ?>
<!– The very first "if" tested to see if there were any Posts to –>
<!– display. This "else" part tells what do if there weren’t any. –>
<p>Sorry, no posts matched your criteria.</p>
<!– REALLY stop The Loop. –>
<?php endif; ?>

</div>
<!– end #content –>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

SINGLE.PHP:
<?php get_header(); ?>

<!– Start the Loop. –>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<!– Display the Title as a link to the Post’s permalink. –>
<div class="title">
<h2>">
<?php the_title(); ?>
</h2>
</div>
<!– Display the Time. –>
<h3 class="date"><span class="month"><?php the_time(‘F’); ?></span> <span class="day"><?php the_time(‘jS’); ?></span><span class="year">, <?php the_time(‘Y’); ?></span></h3>
<!– Display the Post’s Content in a div box. –>
<div class="meta">
<p>Posted by
"><?php the_author(); ?>
under <?php the_category(‘, ‘); ?>
" title="Comment on <?php the_title(); ?>"><?php comments_number(); ?> | ">Permalink</p>
</div>

<div class="story">
<?php the_content(); ?>
</div>
<?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can leave a response, or " rel="trackback">trackback from your own site.

<?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can " rel="trackback">trackback from your own site.

<?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.

<?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.

<?php } edit_post_link(‘Edit this entry.’,”,”); ?> <!– Display a comma separated list of the Post’s Categories. –>
<?php comments_template(); ?>

</div>
<!– closes the first div box –>
<!– Stop The Loop (but note the "else:" – see next line). –>
<?php endwhile; else: ?>
<!– The very first "if" tested to see if there were any Posts to –>
<!– display. This "else" part tells what do if there weren’t any. –>
<p>Sorry, no posts matched your criteria.</p>
<!– REALLY stop The Loop. –>
<?php endif; ?>

</div>
<!– end #content –>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

La CSS creo que la tengo bien, utilizo float para decirle que la sidebar 1 vaya a la izquierda, la sidebar2 a la derecha, y el content no sé si tengo que ponerlo a la derecha o a la izquierda, pues iráen el centro.

MUCHAS GRACIAS

Pin It on Pinterest