Créer une page Plan du site (résolu)
Résolu
Miryam6
Messages postés
151
Date d'inscription
Statut
Membre
Dernière intervention
-
Miryam6 Messages postés 151 Date d'inscription Statut Membre Dernière intervention -
Miryam6 Messages postés 151 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai créer un modèle de page pour afficher un plan du site , il y a juste un petit hic mais je ne sais pas où, le module partager s'affiche au dessus , au lieu d'en dessous,
Voilà le fichier que j'ai créer (par assemblage d'une page basic avec le plan du site)
J'ai créer un modèle de page pour afficher un plan du site , il y a juste un petit hic mais je ne sais pas où, le module partager s'affiche au dessus , au lieu d'en dessous,
Voilà le fichier que j'ai créer (par assemblage d'une page basic avec le plan du site)
<?php
/*
Template Name: Sitemap
*/
?>
<?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
<div id="main-wrapper" class="<?php echo tc__f( 'tc_main_wrapper_classes' , 'container' ) ?>">
<?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
<div class="container" role="main">
<div class="<?php echo tc__f( 'tc_column_content_wrapper_classes' , 'row column-content-wrapper' ) ?>">
<?php do_action( '__before_article_container'); ##hook of left sidebar?>
<div id="content" class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
<?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
<?php the_post(); ?>
<?php do_action ('__before_article') ?>
<?php do_action( '__loop' ); ?>
<div id="content">
<h2><?php _e('Pages', 'textdomain'); ?></h2>
<ul><?php wp_list_pages("title_li=" ); ?></ul>
<h2><?php _e('RSS Feeds', 'textdomain'); ?></h2>
<ul>
<li><a title="Full content" href="feed:<?php bloginfo('rss2_url'); ?>"><?php _e('Main RSS' , 'textdomain'); ?></a></li>
<li><a title="Comment Feed" href="feed:<?php bloginfo('comments_rss2_url'); ?>"><?php _e('Comment Feed', 'textdomain'); ?></a></li>
</ul>
<h2><?php _e('Categories', 'textdomain'); ?></h2>
<ul><?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0&feed=RSS'); ?></ul>
<h2><?php _e('All Blog Posts', 'textdomain'); ?></h2>
<ul><?php $archive_query = new WP_Query('showposts=1000'); while ($archive_query->have_posts()) : $archive_query->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
(<?php comments_number('0', '1', '%'); ?>)
</li>
<?php endwhile; ?>
</ul>
</div>
<?php do_action ('__after_article') ?>
<?php endwhile; ?>
<?php endif; ##end if have posts ?>
<?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?>
</div><!--.article-container -->
<?php do_action( '__after_article_container'); ##hook of left sidebar ?>
</div><!--.row -->
</div><!-- .container role: main -->
<?php do_action( '__after_main_container' ); ?>
</div><!--#main-wrapper"-->
<?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>
A voir également:
- Créer une page Plan du site (résolu)
- Supprimer une page word - Guide
- Site comme coco - Accueil - Réseaux sociaux
- Site de telechargement - Accueil - Outils
- Comment créer un groupe whatsapp - Guide
- Créer un compte google - Guide
1 réponse
Résolu, j'ai enlevé ce qui ne sert pas
<?php
/*
Template Name: Sitemap
*/
?>
<?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
<div id="main-wrapper" class="<?php echo tc__f( 'tc_main_wrapper_classes' , 'container' ) ?>">
<?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
<div class="container" role="main">
<div class="<?php echo tc__f( 'tc_column_content_wrapper_classes' , 'row column-content-wrapper' ) ?>">
<?php do_action( '__before_article_container'); ##hook of left sidebar?>
<div id="content" class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
<?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
<h1>Plan du Site</h1>
<div id="content">
<h2><?php _e('Pages', 'textdomain'); ?></h2>
<ul><?php wp_list_pages("title_li=" ); ?></ul>
<h2><?php _e('RSS Feeds', 'textdomain'); ?></h2>
<ul>
<li><a title="Full content" href="feed:<?php bloginfo('rss2_url'); ?>"><?php _e('Main RSS' , 'textdomain'); ?></a></li>
<li><a title="Comment Feed" href="feed:<?php bloginfo('comments_rss2_url'); ?>"><?php _e('Comment Feed', 'textdomain'); ?></a></li>
</ul>
<h2><?php _e('Categories', 'textdomain'); ?></h2>
<ul><?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0&feed=RSS'); ?></ul>
<h2><?php _e('All Blog Posts', 'textdomain'); ?></h2>
<ul><?php $archive_query = new WP_Query('showposts=1000'); while ($archive_query->have_posts()) : $archive_query->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
(<?php comments_number('0', '1', '%'); ?>)
</li>
<?php endwhile; ?>
</ul>
</div>
<?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?>
</div><!--.article-container -->
<?php do_action( '__after_article_container'); ##hook of left sidebar ?>
</div><!--.row -->
</div><!-- .container role: main -->
<?php do_action( '__after_main_container' ); ?>
</div><!--#main-wrapper"-->
<?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>