WordPress.org

Support

Support » Themes and Templates » [Resolved] Sidebar width

[Resolved] Sidebar width

Viewing 9 replies - 1 through 9 (of 9 total)
  • would you like to post a link?

    editorg1
    Participant

    @editorg1

    247christ.com

    Thanks

    try adding this to your custom css

    .widget-area {
    width: 300px;
    }

    Theme Author Brian Harris
    Member

    @zgani

    @editorg1 – the theme uses Bootstrap 2 and therefore the elements spanX are employed as wrappers for various elements. So the process of reducing the sidebar or any other elements is a bit involved than just adding some css rules here and there.

    What @arty9k suggested will work but will leave you with a chunk of white space to the right of the sidebar – adjustments will need to be made else where to compensate the change.

    Best starting point is a child theme to which you’ll then need to add the files home.php, page.php and single.php all copied over from the parent theme.

    In all of the files above you’d then change the <div class="row" role="main"> to <div class="main row" role="main"> and the <div class="span8"> to <div class="content span8">. You can now target these new elements like so (adjusting the values to suit your needs):

    .main.row {margin: 0 auto;}
    .content.span8 {width: 680px}
    .widget-area {width: 300px}

    Hope that helps point you in the right direction – if you need further assistance please feel free to ask 🙂

    Regards,
    Zulf

    P.S. I’ll most likely add those elements in the parent theme in v1.0.5 as v1.0.4 has already been submitted.

    editorg1
    Participant

    @editorg1

    Thank you, excellent support!
    I think I will wait for the next version.

    Theme Author Brian Harris
    Member

    @zgani

    @editorg1 – v1.0.5 is out with the necessary elements as mentioned previously.

    Let me know if the solution has worked for your needs?

    Regards,
    Zulf

    broadmarkcorp
    Member

    @broadmarkcorp

    That worked. How do I hide the sidebar?

    Theme Author Brian Harris
    Member

    @zgani

    Cool.

    For pages in the latest version I’ve included the Full Width template that can be used instead of the default page template.

    For posts that would require a child theme containing templates without the sidebar call.

    Regards,
    Zulf

    Theme Author Brian Harris
    Member

    @zgani

    Closing thread as original issue already resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Sidebar width’ is closed to new replies.