WordPress.org

Forums

iTek
[resolved] Sidebar width (10 posts)

  1. editorg1
    Member
    Posted 1 year ago #

    Hi
    Great theme!
    I need to make the side bar narrower, can you help?

  2. Devora
    Member
    Posted 1 year ago #

    would you like to post a link?

  3. editorg1
    Member
    Posted 1 year ago #

    247christ.com

    Thanks

  4. Devora
    Member
    Posted 1 year ago #

    try adding this to your custom css

    .widget-area {
    width: 300px;
    }

  5. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    @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.

  6. editorg1
    Member
    Posted 1 year ago #

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

  7. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    @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

  8. broadmarkcorp
    Member
    Posted 1 year ago #

    That worked. How do I hide the sidebar?

  9. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    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

  10. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    Closing thread as original issue already resolved.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic