• I have tried to remove my sidebar on my custom theme.
    Cant get it done. All articels are 5years old och the plugins i find doesnt work. How to remove sidebar in my single.php?

    single.php

    <?php
    
    get_header(); ?>
    
        <div id="single_page_wrap" class="clearfix">
    
            <div class="container">
                <div class="row">
    
    <?php while (have_posts()) : the_post();?>
    
        <div class="col-md-8 col-sm-8 single_page_content">
                        <div class="single_title_image clearfix">
                            <h1><?php the_title(); ?></h1>
                            <?php the_post_thumbnail('full'); ?>
                        </div>
                        <!--single_title_image clearfix-->
    
                        <div class="single_content_text clearfix">
                            <?php
                            the_content();
                            ?>
    
                        </div>
                        <!--clearfix-->
                    </div>
                    <!--col-md-8 single_page_content-->
    <?php endwhile; ?>
                    <?php wp_reset_query(); ?>
                    <div class="col-md-4 col-sm-4 single_wid_wrap">
                      <?php get_sidebar('post') ?>
    
                    </div>
                    <!--col-md-4 single_wid_wrap-->
    
                </div>
                <!--row-->
            </div>
            <!--container-->
    
        </div><!--single_page_wrap-->
    
    <?php get_footer(); ?>

    my css

    /*
    
    Version:     1
    Tags:        light, dark, white
    Text Domain: foo
    */
    
    /**************************************************************************************************
                                    Importing Fonts
    *************************************************************************************************/
    /*lato font*/
    /*
     @import url(https://fonts.googleapis.com/css?family=Lato:400,700);
    */
    
    @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
    @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
    /*Montserrat*/
    /*
    @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
    */
    /*@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700);*/
    /**************************************************************************************************
                                    Universal Rules
    *************************************************************************************************/
    ul,li{
    
        padding: 0;
        margin: 0;
    
    }
    
    h1,h2,h3,h4,h5,h6{
        padding: 0;
        margin: 0;
    }
    
    body{
        font-size: 16px;
        line-height:1.6em;
        background-color: #fff;
        font-family: 'Open Sans', sans-serif;
        color:#333;
        font-weight: normal;
    
    }
    
    /**************************************************************************************************
                                    Regular Classes and rules
    *************************************************************************************************/
    
    .width_100{
        width: 100%;
    }
    
    img{
        max-width: 100%;
        height: auto;
    }
    
    /**************************************************************************************************
                                    Theme Styles
    *************************************************************************************************/
    /*#header_wrap*/
    /*#header_wrap*/
    #header_wrap{
        min-height: 140px;
    }
    /*.logo_wrap*/
    .logo_wrap{
        padding-top: 20px;
    
    }
    
    /*.top_big_menu_wrap*/
    .top_big_menu_wrap{
        float: left;
        position: relative;
        z-index: 9999;
    }
    .top_big_menu_wrap ul{
        padding-top: 65px;
    }
    .top_big_menu_wrap ul, .top_big_menu_wrap li{
    
        list-style: none;
    
    }
    
    .top_big_menu_wrap >ul >li{
        display: inline-block;
        margin-right: 30px;
    }
    
    .top_big_menu_wrap >ul  > li > a{
        color: #666666;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 16px;
    }
    
    .top_big_menu_wrap  >ul >li > a:hover,.top_big_menu_wrap >ul  >li.current-menu-item >a{
        color: #7a2828;
        text-decoration: none;
    }
    
    .top_big_menu_wrap li{
        position: relative;
    }
    .top_big_menu_wrap li ul{
        display: none;
        padding: 0;
        padding: 10px 0 10px 0;
    }
    
    .top_big_menu_wrap li:hover > ul{
        display: inline-block;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #B62D22;
        width: 180px;
        text-align: center;
    }
    
    .top_big_menu_wrap li li{
        display: block;
        text-align: left;
    }
    .top_big_menu_wrap li li a{
        color: #fff;
        line-height: 2em;
        display: block;
        padding:0 10px;
    
    }
    
    .top_big_menu_wrap li li a:hover{
        background-color: #fff;
        color: #B62D22;
        text-decoration: none;
    
    }
    
    /**************************************************************************************************
                                    full width blog
    *************************************************************************************************/
    .single .site-content {
    	margin: 0;
    }
    
    /**************************************************************************************************
                                    mobile menu
    *************************************************************************************************/
    #slide_down_box_btn {
        color: #fff;
        line-height: 50px;
        cursor: pointer;
        display: none;
        text-align: left;
    }
    
    .top_responsive_menu{
        display: none;
        background-color: rgb(106, 0, 0);
        padding-top: 20px;
    }
    
    .top_responsive_menu li {
        display: block;
        text-align: center;
        position: relative;
    }
    .top_responsive_menu li a {
        font-size: 18px;
        text-transform: uppercase;
        color: #fff;
        line-height: 1.8em;
        text-decoration: underline;
    
    }
    #slide_down_box_btn i {
        line-height: 50px;
        float: right;
    }
    .top_responsive_menu > ul {
        margin-bottom: 20px;
    }
    
    .top_responsive_menu ul {
        display: block;
        list-style-type: none;
    }
    
    .top_responsive_menu li ul{
        background-color: #fff;
    
    }
    .top_responsive_menu li ul a{
        color: rgba(106,0,0,1);
    }
    /*.top_phone_info*/
    /*.top_phone_info*/
    /*.top_phone_info*/
    .top_phone_info{
        padding-top: 55px;
        text-align: right;
    
    }
    
    .top_phone_info i{
        display: inline-block;
        font-size: 35px;
        color: #ae2b1f;
    
    }
    
    .top_phone_info h3{
        display: inline-block;
        font-size: 18px;
        font-weight: 700;
        text-align: left;
        margin-left: 15px;
    }
    .top_phone_info h3 span{
        font-weight: 600;
    }
    
    /*#home_6_box_wrap*/
    /*#home_6_box_wrap*/
    #home_6_box_wrap{
        padding: 60px 0 75px 0;
    }
    
    /*.home_6_box_single_inner*/
    .home_6_box_single_inner{
        background-color: #F0F0F0;
        text-align: center;
        height: 450px;
        margin-bottom: 20px;
    }
    
    .home_6_box_single_inner img{
        width: 100%;
        height: 220px;
    }
    
    .home_6_box_single_inner h3{
        font-size: 28px;
        font-weight: 600;
        margin: 20px 0 25px 0;
        text-transform: none;
    }
    
    .home_6_box_single_inner p{
        color: #ae2b1f;
        padding: 0 30px;
    }
    
    /*#home_contact_wrap*/
    /*#home_contact_wrap*/
    #home_contact_wrap{
        background-color: #212426;
        height: 500px;
    }
    
    /**************************************************************************************************
                                    .home_contact_text
    *************************************************************************************************/
    .home_contact_text{
        padding-top: 90px;
        color: #fff;
    }
    
    .home_contact_text h3{
        font-size: 30px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 30px;
    }
    
    .home_contact_text p,.home_contact_text  li{
        color: #ccc;
        font-family: Montserrat, sans-serif;
        font-weight: 700;
        font-size: 15px;
    
    }
    
    .home_contact_text  li{
    
        list-style-image: url('theme_assets/images/li_tick_bg.png');
        list-style-position: outside;
        padding-left: 5px;
        margin-left: 25px;
        line-height: 2em;
    
    }
    
    /*.red_btn*/
    .red_btn{
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        display: inline-block;
        text-align: center;
        line-height: 46px;
        background-color: #AE2B1F;
        padding: 0 20px;
        -webkit-transition: all 0.3s;-moz-transition: all 0.3s;-ms-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;
        min-width: 220px;
        border: 2px solid #AE2B1F;
        height: 50px;
    }
    
    .red_btn i{
        font-size: 12px;
        margin-left: 6px;
    }
    
    .red_btn:hover{
        color: #fff;
        background-color: transparent;
        text-decoration: none;
        border-color: #AE2B1F;
    }
    
    .black_btn{
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        display: inline-block;
        text-align: center;
        line-height: 46px;
        background-color: transparent;
        border: 2px solid #fff;
        padding: 0 20px;
        -webkit-transition: all 0.3s;-moz-transition: all 0.3s;-ms-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;
        min-width: 220px;
        height: 50px;
    }
    
    .black_btn:hover{
        color: #fff;
        background-color:  #AE2B1F;
        text-decoration: none;
        border-color:  #AE2B1F;
    }
    
    .home_contact_text  .red_btn{
        margin-right: 6px;
    }
    .home_contact_text .red_btn, .home_contact_text .black_btn{
    
        margin-top: 20px;
    
    }
    
    /*.home_contact_image*/
    .home_contact_image{
        height: 100%;
    /*   background:url(theme_assets/images/contact_femal_girl.jpg);*/
        background:url(theme_assets/images/reception2.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }
    /**************************************************************************************************
                                    .client_testimonial_wrap
    ************************************************************************************************/
    .client_testimonial_wrap{
        padding: 60px 0;
        background-color: #EFEFEF;
    }
    
    .single_testi img{
        border-radius: 50%;
    }
    
    .single_testi h3{
        color: #AE2B1F;
    }
    
    .single_testi h3:first-of-type{
        margin-bottom: 15px;
    }
    
    .name_tesi{
        font-size: 20px;
        font-weight: bold;
    }
    
    /**************************************************************************************************
                                    .email_subscribe
    *************************************************************************************************/
    .email_subscribe{
        background-color: #F0F0F0;
        padding: 60px 0;
    }
    .email_subscribe h2{
        font-weight: bold;
        margin-top: 5px;
        margin-bottom: 15px;
    
    }
    
    #sub_eamil{
        background-color: transparent;
    
        border: 2px solid #AE2B1F;
        outline: none;
        width: 400px;
        line-height: 40px;
        padding-left: 15px;
        color: #000;
        font-weight: bold;
        height: 45px;
    }
    
    #sub_eamil::-webkit-input-placeholder {
        color: #000;
        font-weight: bold;
    }
    
    #sub_eamil:-moz-placeholder { /* Firefox 18- */
        color: #000;
        font-weight: bold;
    }
    
    #sub_eamil::-moz-placeholder {  /* Firefox 19+ */
        color: #000;
        font-weight: bold;
    }
    
    #sub_eamil:-ms-input-placeholder {
        color: #000;
        font-weight: bold;
    }
    
    #sub_submit_btn{
        height: 45px;
        background-color: #AE2B1F;
        color: #fff;
        padding: 0 30px;
        border: none;
        outline: none;
        position: relative;
        left: -5px;
    
    }
    
    /**************************************************************************************************
                                    .contact_form_home_wrap
    *************************************************************************************************/
    .contact_form_home_wrap{
        padding-top: 80px;
        padding-bottom: 80px;
        background-image: url(theme_assets/images/contact_wrap_bg.jpg);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        min-height: 400px;
        color: #fbfbfb;
    }
    
    .contact_form_home_wrap h2{
        margin-top: 5px;
        margin-bottom: 40px;
    }
    
    /*#contact_form_home*/
    /*#contact_form_home*/
    #contact_form_home input, #contact_form_home textarea{
        background-color: #1D2023;
        line-height: 50px;
        padding-left: 20px;
        font-weight: normal;
        letter-spacing: 1px;
        outline: none;
        border: none;
        width: 100%;
    }
    
    #contact_form_home label{
        width: 48%;
        position: relative;
    }
    
    #contact_form_home  label:first-of-type{
        float: left;
    }
    
    #contact_form_home  label:last-of-type{
        float: right;
    }
    
    #contact_form_home label i{
        position: absolute;
        right: 0;
        top: 0;
        background-color: #1D2023;
        line-height: 50px;
        width: 40px;
        text-align: center;
        height: 100%;
    }
    
    .cf_textarea_wrap{
        position: relative;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .cf_textarea_wrap i{
        position: absolute;
        right: 0;
        top: 0;
        background-color: #1D2023;
        line-height: 50px;
        width: 40px;
        text-align: center;
    }
    
    #cf_submit{
        background-color: #AE2B1F!important;
    }
    
    #cf_submit:hover{
        opacity: 0.9;
    }
    
    #contact_form_home input::-webkit-input-placeholder,#contact_form_home textarea::-webkit-input-placeholder  {
        color: #fbfbfb;
        font-weight: bold;
    }
    
    #contact_form_home input:-moz-placeholder,#contact_form_home textarea:-moz-placeholder { /* Firefox 18- */
        color: #fbfbfb;
        font-weight: bold;
    }
    
    #contact_form_home input::-moz-placeholder,#contact_form_home textarea::-moz-placeholder {  /* Firefox 19+ */
        color: #fbfbfb;
        font-weight: bold;
    }
    
    #contact_form_home input:-ms-input-placeholder,#contact_form_home textarea:-ms-input-placeholder {
        color: #fbfbfb;
        font-weight: bold;
    }
    
    /*.text_contact_form_home*/
    /*.text_contact_form_home*/
    .text_contact_form_home{
        color: #fbfbfb;
        font-weight: normal;
        text-align: left;
    }
    .text_contact_form_home p{
        margin-bottom: 20px;
    }
    .text_contact_form_home i{
        margin-right: 30px;
        font-size: 20px;
    }
    
    /**************************************************************************************************
                                    #footer_social
    *************************************************************************************************/
    #footer_social{
        text-align: center;
        padding-top: 50px;
        padding-bottom: 25px;
        background-color: #FBFBFB;
    }
    #footer_social ul{
        list-style: none;
    }
    #footer_social li{
        display: inline-block;
        line-height: 50px;
        height: 50px;
        padding: 0 30px;
        color: #fff;
        margin-left: 5px;
    }
    #footer_social li i{
        margin-right: 10px;
    }
    #footer_social li a{
        color: #fff;
        line-height: 50px;
        text-transform: uppercase;
    }
    
    #footer_social li.fb_link{
        background: #1B78C7;
    
    }
    
    #footer_social li.google_link{
        background: #FFB400;
    
    }
    
    #footer_social li.twitter_link{
        background: #00BFF3;
    
    }
    
    /**************************************************************************************************
                                    #contact_top_main_slider
    *************************************************************************************************/
    #contact_top_main_slider{
        height: 450px;
        background-image: url(theme_assets/images/contact_slider_img.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
    }
    
    .contact_slider_text{
        position: absolute;
        top: 40%;
        width: 100%;
        text-align: center;
        color: #fff;
    }
    
    .contact_slider_text h2{
        font-weight: 700;
        font-size: 70px;
        margin-bottom: 15px;
    
    }
    
    .contact_slider_text h5{
        font-weight: 700;
        font-size: 22px;
    }
    
    .contact_info_text p{
        margin-bottom: 0;
    }
    
    .contact_page_title{
        font-weight: bold;
        margin-top: 25px;
        margin-bottom: 45px;
    }
    
    .blue_btn_big{
        display: block;
        width: 100%;
        min-height: 50px;
        background-color: #005DC9;
        color: #fff;
        font-size: 16px;
        text-transform: uppercase;
        line-height: 50px;
        text-align: center;
        border: 2px solid #005DC9;
        border-radius: 50px;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -ms-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
    }
    
    .blue_btn_big:hover{
        background-color: transparent;
        text-decoration: none;
        color: #005DC9;
    }
    
    .contact_button{
        margin: 20px 0;
    }
    
    .contact_info_text h3,.contact_info_listing h3{
        font-weight: bold;
        margin-bottom: 20px;
    }
    
    /*.single_contact_list*/
    /*.single_contact_list*/
    /*.single_contact_list*/
    
    .single_contact_list i{
        color: #005DC9;
        margin-right: 5px;
    }
    
    .single_contact_list h4{
        font-weight: bold;
        color: #005DC9;
        cursor: pointer;
        margin-bottom: 10px;
    }
    
    .single_contact_list p{
        font-weight: bold;
    }
    .single_contact_list p{
        display: none;
    }
    
    .contact_content_wrap{
        background-color: #FBFBFB;
    }
    
    .contact_content_wrap_container{
        background-color: #fff;
    }
    
    .footer_wrap{
        color: #6d7480;
        background-color:#FBFBFB ;
    }
    
    /**************************************************************************************************
                                    main page slider
    *************************************************************************************************/
    
    #top_main_slider{
        height: 450px;
        margin-bottom: 70px;
    }
    #top_main_slider .bx-wrapper .bx-pager, #top_main_slider .bx-wrapper .bx-controls-auto {
        bottom: 7%;
    }
    
    #top_main_slider .bx-wrapper .bx-pager.bx-default-pager a {
        width: 15px;
        height: 15px;
        border-radius: 50%;
    
        background-color: transparent;
    
        border: 2px solid #fff;
    }
    #top_main_slider .bx-wrapper .bx-pager.bx-default-pager a:hover, #top_main_slider .bx-wrapper .bx-pager.bx-default-pager a.active {
        background-color: #fff;
        border: 2px solid transparent;
    }
    #top_main_slider .bxslider li {
        width: 100%!important;
        height: 100%!important;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    
    /*#top_main_slider .bxslider li h2 {
        color:#fff;
        font-family: 'SinkinSans-800Black',sans-serif;
        position: absolute;
        width: 100%;
        z-index: 999;
        top: 25%;
        text-align: center;
        text-transform: none;
        font-size: 36px;
        line-height: 45px;
        font-weight: bold;
    }*/
    #top_main_slider .bxslider {
        /* width: 100%!important; */
        height: 100%!important;
        margin: 0!important;
        padding: 0!important;
    }
    
    #top_main_slider .bx-wrapper .bx-viewport {
        box-shadow: none!important;
        border: 0!important;
    }
    
    #top_main_slider .bx-viewport {
        width: 100%!important;
        height: 100%!important;
        left: 0!important;
    }
    
    #top_main_slider .bx-wrapper {
        width: 100%;
        height: 100%;
    }
    
    #top_main_slider .bx-wrapper .bx-prev {
        left: 20px;
        background: url(theme_assets/images/left_slider_icon.png);
        background-size: 100% 100%;
        width: 50px;
        height: 50px;
    }
    
    #top_main_slider .bx-wrapper .bx-next {
        right: 20px;
        background: url(theme_assets/images/right_slide_icon.png);
        background-size: 100% 100%;
        width: 50px;
        height: 50px;
    }
    
    #top_main_slider .bx-wrapper .bx-prev:hover {
        left: 20px;
        background: url(theme_assets/images/left_slider_hover.png);
        background-size: 100% 100%;
        width: 50px;
        height: 50px;
    }
    
    #top_main_slider .bx-wrapper .bx-next:hover {
        right: 20px;
        background: url(theme_assets/images/right_slider_hover.png);
        background-size: 100% 100%;
        width: 50px;
        height: 50px;
    }
    
    /*#top_main_slider li*/
    #top_main_slider li{
        width: 100%;
        height: 100%;
        background-size: cover;
        position: relative;
    }
    
    .slider_inside_wrap{
        position: absolute;
        top: 40%;
        width: 100%;
        text-align: center;
        min-height: 60%;
        color: #000;
    }
    
    .slider_inside_wrap h2{
        color: #fff;
        font-size: 70px;
        font-weight: 900;
        margin-bottom: 30px;
        color: #fff;
    }
    
    .slider_inside_wrap h3 {
        color: #fff;
    }
    
    .slider_inside_wrap .red_btn{
        padding: 0 30px ;
        height: auto;
        line-height: 50px;
        font-size: 16px;
    }
    .slider_inside_wrap .red_btn:focus{
        color: #fff;
    }
    
    .single_title_image{
        text-align: center;
        margin-bottom: 20px;
    }
    
    .iframe_home_slider{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
    }
    /**************************************************************************************************
                                    .single_page_content
    *************************************************************************************************/
    #single_page_wrap{
        margin-top: 30px;
        margin-bottom: 70px;
    }
    
    .single_page_content h1{
        color: #000;
        font-size: 36px;
        text-transform: none;
        font-weight: 900;
        text-align: left;
        margin-bottom: 30px;
    }
    
    /**************************************************************************************************
                                    WP Core Classes
    *************************************************************************************************/
    .alignleft {
        float: left;
    }
    .alignright {
        float: right;
    }
    .aligncenter {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    img.alignleft {
        margin: 12px 24px 12px 0;
        margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
    }
    img.alignright {
        margin: 12px 0 12px 24px;
        margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
    }
    img.aligncenter {
        margin-top: 12px;
        margin-top: 0.857142857rem;
        margin-bottom: 12px;
        margin-bottom: 0.857142857rem;
    }
    
    /**************************************************************************************************
                                    Temp Styles
    *************************************************************************************************/
    .single_content_text p{
        text-align: justify;
    }
    .single_content_text blockquote{
        border-color: #AE2B1F;
    }
    
    a{
        color: #AE2B1F;
    }
    
    /*.single_wid_wrap{
        text-align: center;
    }*/
    
    .h3_wid_title{
        font-weight: bold;
        margin-bottom: 5px;
    
        text-transform: uppercase;
        line-height: 30px;
    }
    
    .page_right_wid{
        margin-bottom:30px;
    }
    
    .post_right_wid{
        margin-bottom:30px;
    }
    
    .modal{
        z-index: 9999999;
    }

Viewing 1 replies (of 1 total)
  • Thread Starter zookie_333

    (@zookie_333)

    i understand i have to remove <?php get_sidebar('post') ?> in single.php but i cant change the size of the container in the css. plz help.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable sidebar single.php’ is closed to new replies.