Single post not showing mobile/tablet view
-
Hi!
When using the blogito theme, which is supposed to be responsive, posts don’t show up on mobile or tablet. (Right now I have the jetpack mobile theme activated, but would love for the mobile theme to display correctly). It shows menu, widgets, and footer just fine, which leads me to think there is a problem in single.php? There is no problem when just resizing the browser. Pages work just fine as well.
This is the code for single.php:
<?php /** * The template for displaying all single posts. * * @link https://developer.www.ads-software.com/themes/basics/template-hierarchy/#single-post * * @package blogito */ get_header(); ?> <?php $has_sidebar = get_theme_mod( 'single_post_sidebar', 1 ); if ( is_single() && $has_sidebar ) { $GLOBALS['content_width'] = 692; } ?> <?php $is_active_sidebar = ( is_active_sidebar( 'sidebar-1' ) ? '' : ' col-lg-offset-2' ); ?> <div class="row"> <div id="primary" class="content-area<?php echo ( $has_sidebar ? ' col-lg-8' . $is_active_sidebar : ' col-lg-10 col-lg-offset-1' ); // WP XSS OK. ?>"> <main id="main" class="site-main row" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'template-parts/content-single', get_post_format() ); ?> <?php blogito_related_posts(); ?> <?php if ( get_theme_mod( 'single_post_navigation', 1 ) ) : the_post_navigation( array( 'prev_text' => '<div class="blogito-previous-article">' . esc_html( get_theme_mod( 'single_post_navigation_previous_label', esc_html__( 'Previous article', 'blogito' ) ) ) . '</div><div class="blogito-previous-article-title">%title</div>', 'next_text' => '<div class="blogito-next-article">' . esc_html( get_theme_mod( 'single_post_navigation_next_label', esc_html__( 'Next article', 'blogito' ) ) ) . '</div><div class="blogito-next-article-title">%title</div>', 'in_same_term' => wp_validate_boolean( get_theme_mod( 'single_post_navigation_only_category', 0 ) ), ) ); endif; ?> <?php // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // End of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php if ( $has_sidebar ) { get_sidebar(); } ?> </div><!-- .row --> <?php get_footer(); ?>
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Single post not showing mobile/tablet view’ is closed to new replies.