Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @jijimega

    Please try the CSS code bellow:

    .sidebar {
        display: none;
    }
    content-wrapper {
        width: 900px;
    }

    Add this to your theme CSS editor. If you do not have CSS Theme Editor,
    install the Simple Custom CSS plugin.

    Let me know if you need anything else, please let me know.

    Cheers,
    Nastia

    Edit the single.php file, you will have to use the following code below.

    Changes includ changing the containing class just below get_header() and also adding get_sidebar() before the footer.

    <?php
    /**
    * The template for displaying all single posts.
    *
    * @link https://developer.www.ads-software.com/themes/basics/template-hierarchy/#single-post
    *
    * @package Flation
    */

    get_header(); ?>

    <div class=”col-xs-12 col-sm-12 col-md-8″>

    <div id=”primary” class=”content-wrapper”>
    <main id=”main” class=”site-main” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘template-parts/content’, ‘single’ ); ?>

    <?php
    the_post_navigation( array(
    ‘prev_text’ => ‘<i class=”glyphicon glyphicon-chevron-left” aria-hidden=”true”></i> %title’,
    ‘next_text’ => ‘%title <i class=”glyphicon glyphicon-chevron-right” aria-hidden=”true”></i>’
    ) );
    ?>

    <?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 –>

    </div>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘show side bar globally’ is closed to new replies.