oggi ho riscontrato un problema nel mio blog ovvero la sidebar viene visualizzata solo nella home.
come risolvo?
Printable View
oggi ho riscontrato un problema nel mio blog ovvero la sidebar viene visualizzata solo nella home.
come risolvo?
Ma qual è il link del wordpress? Io cliccando vedo solo la home page...mentre gli altri link non funzionano...
no scusa è un altro sito: http://ubuntufacile.altervista.org
Ma le sidebar-right e sidebar-left sono all'interno dello stesso file, oppure sono in due file separati?
Hai controllato se nel file single.php sono richiamate entrambe le sidebar?
sono nello stesso file
scusate l'up.
ho guardato nel file single.php e la funzione get sidebar è presente:
non so se può servire comunque questo è il codice di sidebar.php:Codice PHP:<?php get_header(); ?>
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 class="title-post"><?php the_title(); ?></h2>
<br/> <p align="center"><script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=468X60/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script></p><br/>
<?php the_content('<p class="serif">Continua »</p>'); ?>
<?php link_pages('<p><strong>Pagine:</strong> ', '</p>', 'numero'); ?>
<p class="post-footer">
Pubblicato in <?php the_category(',') ?>
<br/>
<span class="date"><?php the_time('j F Y') ?></span> |
<span class="author">by <?php the_author(); ?></span> |
<?php if (function_exists('the_tags')) { ?> <span class="category"><?php the_tags() ?></span><?php } ?>
<?php if (function_exists('akst_share_link')) { akst_share_link(); } ?>
<?php edit_post_link(__('Modifica..')); ?>
</p>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Ops, nessun post corrisponde ai tuoi criteri.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
e di functions.php e credo che il problema sia solo quello infatti la sidebar a destra si vede ed è proprio la 3:Codice PHP:<div id="sidebar">
<ul class="sidemenu">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li>
<p>Benvenuti in UbuntuFacile, in questo blog troverete guide, articoli e molto altro ancora su ubuntu e su tutte le distribuzioni di esso derivate.
Questo blog è realizzato per pura passione personale e non vi chiedo nulla in cambio se non di votare il sito cliccando il banner di Altervista (qui sotto) oppure cliccando <a href="http://it.altervista.org/classifica.php?rate_nick=ubuntufacile">Qui</a></p>
<form action="<?php bloginfo('home'); ?>/" method="get" id="searchform">
<p>
<input id="stringa" type="text" name="s" class="textbox" />
<input name="search" class="button" value="Search" type="submit" />
</p>
</form>
</li>
<?php endif; ?>
</ul>
<div id="sidebar-left">
<ul class="sidemenu">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<?php if (is_home()) { ?>
<p align="center">
<script type="text/javascript">
//<![CDATA[
var l='it';
document.write('<s'+'cript type="text/javascript" src="http://'+l+'.altervista.org/members_inc/cat.av?'+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script>
</p>
<p align="center">
<!-- The AV Exchange -->
<script src="http://www.theavexchange.altervista.org/work.php?ID=ubuntufacile" type="text/javascript"></script>
<!-- The AV Exchange -->
<!-- Histats.com START -->
<script type="text/javascript" >
var s_sid = 686300; var st_dominio = 4;
var cimg = 428; var cwi =112; var che =75;
</script>
<script type="text/javascript" language="javascript" src="http://s11.histats.com/js9.js"></script>
<noscript><p>
<img src="http://s4.histats.com/stats/0.gif?686300&1" alt="cool hit counter" /></p>
</noscript>
<!-- Histats.com END -->
<a href="http://fusion.google.com/add?source=atgs&feedurl=http%3A//ubuntufacile.altervista.org/blog/feed/"><img src="http://buttons.googlesyndication.com/fusion/add.gif" border="0" alt="Add to Google"></a>
</p><br/><script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display.js"></script>
<li><h2>Ultimi Articoli</h2>
<ul>
<?php $temp_query = $wp_query; ?>
<?php query_posts('showposts=10'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<?php else : ?>
<li>Nessun articolo...</li>
<?php endif; ?>
<?php $wp_query = $temp_query; ?>
</ul>
</li>
<li>
<h2 class="categories">Categorie</h2>
<ul class="sidemenu">
<?php wp_list_cats(); ?>
</ul>
</li>
<li>
<h2>In Seconda Pagina</h2>
<ul>
<?php $temp_query2 = $wp_query; ?>
<?php query_posts('paged=2'); ?>
<?php if (have_posts()) { ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<?php } else { ?>
<li>Nessun articolo...</li>
<?php } ?>
<?php $wp_query = $temp_query2; ?>
</ul>
</li>
<?php } ?>
<li>
<?php endif; ?>
</ul>
<ul class="sidemenu">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : else : ?>
<?php endif; ?>
</ul>
</div>
<div id="sidebar-right">
<p align="center"><script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=120X600/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script></p>
</div>
<!-- sidebar ends -->
</div>
Codice PHP:<?php
if ( function_exists('register_sidebars') )
register_sidebars(3);
?>