• User Attivo

    Problema con barra laterale

    Ciao a tutti,ho creato un sito in locale, ora che è finito ho comprato spazio e dominio e lo sto mettendo online..Problemino: ho modificato il css, la barra laterale della parte blog non deve avere archivio, categoria ecc a me interessa solo "ultimi articoli" e ho aggiunto il box delle recensioni e pagina facebook. Prendo il css del sito in locale e lo copio su quello online...solo che la sidebar non cambia..Vi allego sidebar originale e quella modificata da locale..In locale funziona... :arrabbiato:
    [PHP]<?php/** * The Sidebar containing the main widget areas. /?> <div id="sidebar" class="widget-area col300" role="complementary"> <?php if ( ! dynamic_sidebar( 'sidebar-right' ) ) : ?> <aside id="recent-posts" class="widget"> <div class="widget-title"><?php _e( 'Latest Posts', 'restaurateur' ); ?></div> <ul> <?php $args = array( 'numberposts' => '10', 'post_status' => 'publish' ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ if ($recent["post_title"] == '') { $recent["post_title"] = __('View Post', 'restaurateur'); } echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"] .'</a> </li> '; } ?> </ul> </aside> <aside id="categories" class="widget"> <div class="widget-title"><?php _e( 'Categories', 'restaurateur' ); ?></div> <ul> <?php wp_list_categories( array( 'title_li' => '', 'hierarchical' => 0 ) ); ?> </ul> </aside> <aside id="archives" class="widget"> <div class="widget-title"><?php _e( 'Archives', 'restaurateur' ); ?></div> <ul> <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> </ul> </aside>
    <?php endif; // end sidebar widget area ?> </div><!-- #sidebar .widget-area -->[/PHP]
    Css mOdificato e funzionante in locale
    [PHP]<?php/
    * * The Sidebar containing the main widget areas. */?> <div id="sidebar" class="widget-area col300" role="complementary"> <?php if ( ! dynamic_sidebar( 'sidebar-right' ) ) : ?> <aside id="recent-posts" class="widget"> <div class="widget-title"><?php _e( 'Latest Posts', 'restaurateur' ); ?></div> <ul> <?php $args = array( 'numberposts' => '10', 'post_status' => 'publish' ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ if ($recent["post_title"] == '') { $recent["post_title"] = __('View Post', 'restaurateur'); } echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"] .'</a> </li> '; } ?> </ul> </aside> <div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect facebook /it_IT/sdk.js#xfbml=1&version=v2.3&appId=1410606422531737"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><div class="fb-page" data-href="LINK " data-hide-cover="false" data-show-facepile="false" data-show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="LINK PAG FB"><a href="LINK PG FB">Osteria dell ' Oro</a></blockquote></div></div><p> <div id="TA_restaurantWidgetGreen885" class="TA_restaurantWidgetGreen"><ul id="GrNkPp5fad2" class="TA_links 2LDVclIf6OCP"><li id="IA9ARsL3OY" class="snQEuH4"><a target="_blank" href="LINK TRIPADVISOR"><img src="LINK TRIPADVISOR" alt="TripAdvisor"/></a></li></ul></div><script src="LINK TRIPADVISOR"></script></p>
    <?php endif; // end sidebar widget area ?> </div><!-- .widget-area -->[/PHP]


  • User Attivo

    Risolto grazie