Vous n'êtes pas identifié.
Annonce
Mettez-vous à jour ! WordPress 3.3.2 est disponible en français.
Annonce 1 : Le Codex en français a besoin de vous pour avancer !
Annonce 2 : Avant de poster, n'oubliez pas de faire une petite recherche et de lire les règles de ce forum.
Annonce 3 : Lisez notre blog, il regorge de bonnes informations.
Annonce 4 : Rejoignez-nous sur Facebook, Google + et sur Twitter
#1 13-09-2007 00:21:09
- MKB
- Membre WP
- Date d'inscription: 13-09-2007
- Messages: 2
Garder ma colonne laterale gauche dans mes pages single.php
bonjour à tous
dans mon theme j'ai 3 colonne et donc dans les page single.php (article seul) je voudrais y ajouter une 2eme colonne avec l'articles en l'occurence la meme que celle de ma page d'accueil.
voila ma page single.php j'ai deja tenté de faire quelque changement mais sans resultat :
<?php
get_header();
$alwayssidebars = get_option('mandigo_always_show_sidebars');
if ($alwayssidebars) {
if (!get_option('mandigo_nosidebars') && get_option('mandigo_sidebar1_left')) include (TEMPLATEPATH . '/sidebar.php');
if (!get_option('mandigo_nosidebars') && get_option('mandigo_1024') && get_option('mandigo_3columns') && get_option('mandigo_sidebar2_left')) {
include (TEMPLATEPATH . '/sidebar2.php');
}
}
$tag_posttitle_single = get_option('mandigo_tag_posttitle_single');
$tag_pagetitle = get_option('mandigo_tag_pagetitle' );
?>
<td id="content" class="<?php echo ($alwayssidebars ? 'narrow' : 'wide'); ?>column">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="postinfo">
<div class="calborder">
<div class="cal">
<span class="cald<?php echo (get_option('mandigo_dates') ? ' cald2' : '') ?>"><?php the_time((get_option('mandigo_dates') ? 'M' : 'd')) ?></span>
<span class="calm"><?php the_time((get_option('mandigo_dates') ? 'd' : 'm')) ?></span>
<span class="caly"><?php the_time('Y') ?></span>
</div>
</div>
<<?php echo $tag_posttitle_single; ?> class="posttitle"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></<?php echo $tag_posttitle_single; ?>>
<small><?php printf(__('Posted by: %s in %s','mandigo'),mandigo_author_link(get_the_author_ID(),get_the_author()),get_the_category_list(', ')) ?></small>
</div>
<div class="entry">
<?php the_content('<p class="serif">'. __('Read the rest of this entry','mandigo') .' »</p>'); ?>
<?php link_pages('<p><strong>'. __('Pages','mandigo') .':</strong> ', '</p>', 'number'); ?>
<p class="postmetadata alt">
<small>
<?php printf(__('This entry was posted on %s at %s and is filed under %s.','mandigo'),get_the_time(__('l, F jS, Y','mandigo')),get_the_time(),get_the_category_list(', ')); ?>
<?php printf(__('You can follow any responses to this entry through the %s feed.','mandigo'),'<a href="'. comments_rss() .'">RSS 2.0</a>'); ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.','mandigo'),trackback_url(false)); ?>
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
<?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.','mandigo'),trackback_url(false)); ?>
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php _e('You can <a href="#respond">skip to the end</a> and leave a response. Pinging is currently not allowed.','mandigo'); ?>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php _e('Both comments and pings are currently closed.','mandigo'); ?>
<?php } edit_post_link(__('Edit this entry.','mandigo'),'',''); ?>
</small>
</p>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<<?php echo $tag_pagetitle; ?>><?php _e('Sorry, no posts matched your criteria.','mandigo'); ?></<?php echo $tag_pagetitle; ?>>
<?php endif; ?>
</td>
<?php
if ($alwayssidebars) {
if (!get_option('mandigo_nosidebars') && !get_option('mandigo_sidebar1_left')) include (TEMPLATEPATH . '/sidebar.php');
if (!get_option('mandigo_nosidebars') && get_option('mandigo_1024') && get_option('mandigo_3columns') && !get_option('mandigo_sidebar2_left')) {
include (TEMPLATEPATH . '/sidebar2.php');
}
}
get_footer();
?>
mon site il s'agit de www.tatianalaurens.fr
merci d'avance
Hors ligne
#2 13-09-2007 03:55:02
Re: Garder ma colonne laterale gauche dans mes pages single.php
Bonjour,
concernant le thème mandigo, tout se gère depuis les options du thème lui même, qui doit se trouver sous l'onglet Admin > Thème. Pas besoin donc de modifier manuellement le fichier.
Pour plus de détails
, la question sur le thème mandigo ayant été déjà abordée.
Dernière modification par Many (13-09-2007 03:55:38)
Hors ligne
#3 13-09-2007 12:51:56
- MKB
- Membre WP
- Date d'inscription: 13-09-2007
- Messages: 2
Re: Garder ma colonne laterale gauche dans mes pages single.php
salut
merci pour ta reponse
enfait je suis deja aller dans theme ===> theme options
et cochant et decochant ses deux case et en jouant avec les nombre de colonnes.
** Use the 1024px theme look instead of the default 800px one
** Show sidebars even in single post view
j'obtient dans mes pages avec article seul 3 colonne au lieu de 2 comme dans ma page d'accueil. moi mon but et de laisser que 2 colonne.
si des personnes sont interessé je ferai des captures d'ecran.
merci d'avance
Hors ligne
