Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

En el listado de index.php de post poner separador.

Estas en el tema de En el listado de index.php de post poner separador. en el foro de WordPress en Foros del Web. Hola chicos me gustaría que me ayudaran nuevamente, ahora me gustaría saber como puedo agregar un separador entre los post del index.php que en el ...
  #1 (permalink)  
Antiguo 29/12/2011, 19:36
Avatar de Marthita23  
Fecha de Ingreso: enero-2003
Ubicación: Edo Mexico
Mensajes: 485
Antigüedad: 21 años, 3 meses
Puntos: 17
Pregunta En el listado de index.php de post poner separador.

Hola chicos me gustaría que me ayudaran nuevamente, ahora me gustaría saber como puedo agregar un separador entre los post del index.php que en el theme que uso de llama home.php

Este es el código del home.php (index.php)...

Código PHP:
<div id="content">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    
            
    <?php the_content(__('Read more'));?><div style="clear:both;"></div><br /><br />
            
    <!--
    <?php trackback_rdf(); ?>
    -->
            
    <?php endwhile; else: ?>
                
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    <p><center><?php posts_nav_link(' — '__('Pagina anterior'), __('Siguiente pagina')); ?><center/></p>
                    
</div>

<div id="contentbottom"></div>

<!-- The main column ends  -->

<?php get_footer(); ?>
No se donde se tenga que aplicar si enel home.php o en el style.css pero por si las dudas les dejo los 2 códigos...

style.php

Código PHP:
/* 
    Theme Name: Photopress
    Theme URL: http://themes.performancing.com/themes/announcing-the-photopress-wordpress-theme-for-photoblogs/
    Description: Photopress is a 1-column theme ideal for a phot0blog using 640x480 pixel shots.
    Author: Brian Gardner
    Author URI: http://themes.performancing.com/
    Version: 1.0
    
            
    The CSS, XHTML and design is released under GPL:
    http://www.opensource.org/licenses/gpl-license.php
    
    Changelog:
        v1.0 - 06.15.07
        First Release of Photopress
*/

body {
    
background#FFFFFF;
    
color#000000;
    
font-size12px;
    
font-familyVerdanaHelveticaSans-Serif;
    
margin0px auto 0px;
    
padding0px;
    }
    
#wrap {
    
background#FFFFFF top center repeat-y;
    
width800px;
    
color#333333;
    
font-size12px;
    
font-familyArialTahomaVerdana;
    
margin0px auto 0px;
    
padding0px;
    }
    
/************************************************
*    Hyperlinks                                    *
************************************************/

aa:visited{
    
color#000000;
    
text-decorationnone;
    }
    
a:hover{
    
text-decorationnone;
    }
    
/************************************************
*    Header                                      *
************************************************/

#header {
    
background#FFFFFF;
    
width800px;
    
margin0px auto 0px;
    
padding10px 0px 10px 0px;
    
text-aligncenter;
    
border-top0px solid #ffffff;
        
text-transformuppercase;
    }
    
#header a {
    
font-familyCentury GothicVerdanaTahoma;
    
font-size36px;
    
color#000000;
    
text-decorationnone;
    
padding0px;
    
margin0px;
    
text-transformuppercase;
    }

#header a:hover{
    
color#999999;
    
}

/************************************************
*    Navbar                                      *
************************************************/

#navbar {
    
background#FFFFFF;
    
width800px;
text-aligncenter;
    
margin0px auto 0px;
    
padding5px 0px 5px 0px;
    }
    
#navbar li {
    
displayinline;
    list-
style-typenone;
    
margin0px;
    
padding0px;
    }
        
#navbar ul {
    
margin0px;
    
padding0px;
    }
    
#navbar ul li a {
    
font-familyArialTahomaVerdana;
    
font-size12px;
    
color#000000;
    
padding5px 10px 5px 10px;
    
margin0px 10px 0px 10px;
        
font-weightbold;
    }

#navbar ul li a:hover {
    
background#FFFFFF;
    
color#000000;
    
}
    
/************************************************
*    Content                                      * 
************************************************/

#contenttop {
    
background#FFFFFF;
    
width800px;
    
height40px;
    
margin0px auto 0px;
    
padding0px;
    }
    
#contentbottom {
    
background#FFFFFF;
    
width800px;
    
height30px;
    
margin0px auto 0px;
    
padding0px;
    }

#content {
    
width800px;
    
margin0px auto 0px;
    
padding0px 0px 0px 0px;
    }
    
.
title {
    
width640px;
    
margin0px auto 0px;
    
padding0px;
    }
    
.
titleleft {
    
width440px;
    
height40px;
    
floatleft;
    
margin0px;
    
padding0px;
    
text-alignleft;
    }
    
.
titleright {
    
width195px;
    
height40px;
    
floatright;
    
margin0px;
    
padding0px;
    
text-alignright;
    }

#content p{
    
padding0px 0px 15px 0px;
    
margin0px;
    
line-height20px;
    }
    
#content p img{
    
bordernone;
    
margin-bottom10px;
    }
    
#content h1 {
    
color#000000;
    
font-size22px;
    
font-familyTimes New RomanVerdanaArialSans-Serif;
    
font-weightnormal;
        
text-aligncenter;
    
padding0px 0px 0px 0px;
    
margin0px;
    }
    
#content h1 a  {
    
color#000000;
    
text-decorationnone;
        
text-aligncenter;
    }

#content h1 a:hover {
    
color#000000;
    
text-decorationnone;
        
text-aligncenter;
    }

#content blockquote p{
    
margin0px 0px 10px 0px;
    
padding10px 0px 0px 0px;
    }
    
blockquote{
    
margin0px 25px 15px 25px;
    
padding0px 25px 0px 10px;
    
background#E8E8E8;
    
border-top2px solid #000000;
    
border-bottom1px solid #000000;
    
}
    
#content ol{
    
margin0px 0px 0px 20px;
    
padding0px 0px 10px 0px;
    }
    
#content ol li{
    
margin0px 0px 0px 20px;
    
padding0px 0px 5px 0px;
    }
    
#content ul{
    
list-style-typesquare;
    
margin0px 0px 0px 20px;
    
padding0px 0px 10px 0px;
    }
    
#content ul li{
    
list-style-typesquare;
    
margin0px 0px 0px 20px;
    
padding0px 0px 5px 0px;
    }
    
#content img.wp-smiley {
    
floatnone;
    
bordernone;
    
padding0px;
    
margin0px;
    }

#content img.wp-wink {
    
floatnone;
    
bordernone;
    
padding0px;
    
margin0px;
    }

/************************************************
*    Footer                                      *
************************************************/

#footer {
    
width800px;
    
color#333333;
    
margin0px auto 0px;
    
padding0px 0px 10px 0px;
    
text-alignleft;
    
line-height17px;
    }
    
#footer p {
    
color#333333;
    
padding3px 0px 0px 0px;
    list-
style-typenone;
    
margin0px;    
    }
    
#footer h2 {
    
color#333333;
    
font-size12px;
    
font-familyArialHelveticaSans-Serif;
    
font-weightbold;
    
border-bottom2px solid #000000;
    
padding0px 0px 2px 0px;
    
margin15px 0px 0px 0px;
    
text-transformuppercase;
    }

#footer a, #footer a:visited{
    
color#333333;
    
text-decorationnone;
    }
    
#footer a:hover{
    
text-decorationunderline;
    }

#footer ul {
    
list-stylenone;
    
margin0px 0px 0px 0px;
    
padding0px;
    }

#footer ul li {
    
displayinline;
    
padding0px;
    
margin0px;
    }
    
#footer ul li a, #footer ul li a:visited {
    
displayblock;
    
color#333333;
    
text-decorationnone;
    
margin0px;
    
padding5px 0px 5px 0px;
    
border-bottom1px solid #666666;
    
}

#footer ul li a:hover {
    
background#FFFFFF;
    
color#000000;
    
text-decorationnone;
    }
    
.
footerleft {
    
floatleft;
    
width215px;
    
margin0px 20px 0px 0px;
    
padding0px 0px 20px 0px;
    
displayinline;
    }
    
.
footermiddle {
    
floatleft;
    
width330px;
    
margin0px;
    
padding0px 0px 20px 0px;
    
displayinline;
    }
    
.
footerright {
    
floatright;
    
width215px;
    
margin0px 0px 0px 0px;
    
padding0px 0px 20px 0px;
    
displayinline;
    }    

/************************************************
*    Search Form                                    *
************************************************/

#searchdiv {
    
margin0px;
    
padding 0px;
    }
    
#searchform {
    
margin0px;
    
padding0px;
    
overflowhidden;
    }
    
#s {
    
width190px;
    
background#EFEFEF url(images/search.gif);
    
color#333333;
    
font-size11px;
    
font-familyVerdanaHelveticaSans-Serif;
    
padding3px;
    
margin8px 0px 0px 0px;
    
border1px solid #C0C0C0;
    
}

/************************************************
*    Comments                                    *
************************************************/
    
#commentblock {
    
width580px;
    
color#000000;
    
floatleft;
    
padding0px 20px 10px 20px;
    
margin10px 0px 0px 0px;
    }
    
#commentblock ol{
    
list-style-typesquare;
    
margin0px 0px 0px 0px;
    
padding0px 0px 10px 0px;
    }
    
.
commentdate {
    
font-size12px;
    
padding-left0px;
    }
    
#commentlist li p{
    
margin-bottom8px;
    
line-height20px;
    
padding0px;
    }

.
commentname {
    
color#333333;
    
margin0px;
    
padding5px 5px 5px 0px;
    }

.
commentinfo{
    
clearboth;
    }

.
commenttext {
    
background#EFEFEF url(images/comment.gif) no-repeat top;
    
clearboth;
    
margin5px 0px 20px 0px;
    
padding15px 10px 0px 10px;
    
width500px;
    }

.
commenttext-admin {
    
background#EFEFEF url(images/comment.gif) no-repeat top;
    
clearboth;
    
margin5px 0px 20px 0px;
    
padding15px 10px 0px 10px;
    
width500px;
    }

#commentsformheader{
    
padding-left0px;
    }

#commentsform{
    
text-aligncenter;
    
margin0px;
    
padding0px;
    }

#commentsform form{
    
text-alignleft;
    
margin0px;
    }

#commentsform p{
    
margin0px;
    }

#commentsform form textarea{
    
width99%;
    }
    
p.comments_link  img{
    
margin0px;
    
padding0px;
    
border-top-stylenone;
    
border-right-stylenone;
    
border-bottom-stylenone;
    
border-left-stylenone;
    } 
Me gustaría que me dijeran como poner una imagen como separador entre los post .
  #2 (permalink)  
Antiguo 30/12/2011, 07:00
Avatar de Nekko
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Buenos Aires
Mensajes: 3.141
Antigüedad: 16 años, 1 mes
Puntos: 656
Respuesta: En el listado de index.php de post poner separador.

Probaste añadiendo una imagen debajo de the_content() ?

Sino via CSS con una estructura como la de este usuario
http://www.forosdelweb.com/f118/sepa...tradas-965287/
__________________
Taller para crear themes wordpress desde cero | Presupuestos para trabajos particulares vía MP

Etiquetas: blog, css, listado, php, post, themes
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:54.