[HTML] boostrap e class row

Stato
Chiusa ad ulteriori risposte.

luigi777

Utente Attivo
14 Feb 2008
1.086
1
38
43
Massa, Italy
Salve, perché se metto la classe row prima di indicare le colonne .. e se vado nell'emulatore mobile di google.. mi si sposta da destra e sinistra.. invece se non metto nessuna classe row .. non lo fa ?

Questo è il codice:
Codice:
<?php
get_header();
?>
<div class="row">
<section class="col-sm-8 col-md-8">
<?php if (have_posts()): ?>
<h1 class="center-text orange"><?php _e( 'News of days', 'miositoweb' ) ?></h1>
<?php
if ( have_posts() ) :
    while ( have_posts() ) :
    the_post();
    get_template_part( 'content', get_post_format() );
endwhile;
?>
<?php  wp_bootstrap_pagination();  ?>
<?php
else :
    get_template_part( 'content', 'none' );
endif;
?>
<?php else: ?>
<?php get_search_form(); ?>
<?php endif; ?>       
</section>
<aside class="col-sm-4 col-md-4">
    <?php get_sidebar(); ?>
</aside>
</div>
<?php get_footer(); ?>

di chi è la colpa .. o e solamente perché non sono nel vero smartphone. ?
 
Le classi class="col-sm-8 col-md-8" e class="col-sm-4 col-md-4" devi inserirle nei div
PHP:
<?php
get_header();
?>
<div class="row">
<div  class="col-sm-8 col-md-8">
<section>
<?php if (have_posts()): ?>
<h1 class="center-text orange"><?php _e( 'News of days', 'miositoweb' ) ?></h1>
<?php
if ( have_posts() ) :
    while ( have_posts() ) :
    the_post();
    get_template_part( 'content', get_post_format() );
endwhile;
?>
<?php  wp_bootstrap_pagination();  ?>
<?php
else :
    get_template_part( 'content', 'none' );
endif;
?>
<?php else: ?>
<?php get_search_form(); ?>
<?php endif; ?>     
</section>
</div>
<div class="col-sm-4 col-md-4">
<aside>
    <?php get_sidebar(); ?>
</aside>
</div>
</div>
<?php get_footer(); ?>
Comunque vedo anche aperture e chiusure php anomale...
 
ok, tutto risolto.. non era il row di bootstrap .. ma era l'immagine di test di theme unit..
ho risolto con un codice trovato su gist.

Ora è tutto a posto e ti ringrazio molto.. ed ora sistemo anche l'e aperture e chiusure dell'php.

Buona settimana.
 
Stato
Chiusa ad ulteriori risposte.

Discussioni simili