Home › Forum › Plugin e temi di WP › eliminare la barra laterale avendo messo il tema: itheme1-1
-
AutorePost
-
-
18 Febbraio 2008 alle 21:53 #5845mircarePartecipante
ciao,
ho messo questo tema e vorrei che(come nel tema di default)solo nella home page sia visualizzata la barra laterale…
ho trovato qui, http://www.wpitaly.it/wiki/Main/SidebarArticoliSingoli, come aggiungere la barra laterale con il tema di default e ho provato a fare la cosa inversa ma non mi cambia niente..
ecco il contenuto del file single.php messo nella cartella itheme:
<?php get_header(); ?>
<div id=”content”>
<div class=”post-nav”> <span class=”previous”><?php previous_post_link(‘%link’) ?></span> <span class=”next”><?php next_post_link(‘%link’) ?></span></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<div class=”date”><span><?php the_time(‘M’) ?></span> <?php the_time(‘d’) ?></div>
<div class=”title”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<div class=”postdata”><SPAN class=”category”><?php the_category(‘, ‘) ?></SPAN> <span class=”right mini-add-comment”>Add comments</span></div>
</div>
<div class=”entry”>
<?php the_content(‘Continue reading »’); ?>
<?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>
<?php edit_post_link(‘Edit’, ”, ”); ?>
</div><!–/entry –>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div><!–/post –>
</div><!–/content –>
<div id=”footer”>WP Theme & Icons by N.Design Studio</div>
</div><!–/left-col –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
ho provato a modificare nella 3° riga la parola “post-nav” con “widecolumn” ma non mi è cambiato niente…spero in un vostro aiuto.. GRAZIE
-
19 Febbraio 2008 alle 12:53 #50810ArturoPartecipante
per non far visualizzare la barra laterale nella single.php devi togliere <?php get_sidebar(); ?> che sarebbe la parte di codice che va a dire a WP di prendere ed inserire la sidebar per l’appunto. cambiare le classi del css non cambia assolutamente nulla visto che quello non ha assolutamente a che fare con la parte riguardante la sidebar.
-
19 Febbraio 2008 alle 14:49 #50819gollum1Partecipante
Sopratutto pubblicare il codice se non ti è esplicitamente richiesto non serve a nulla se non a infastidire.
se hai letto dissezione di un tema hai la soluzione su come fare.
leggi il wiki per capire come sono composte le pagine, sopratutto il discorso dei template, questa è la soluzione.
Byez
—
Gollum1
-
19 Febbraio 2008 alle 18:35 #50830mircarePartecipante
grazie..
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.