• Hello All,

    2 issues!

    My self-hosted blog is kabayantech.com.

    1. I just installed the Omega and it’s child theme Mobile, but when I try to adjust the content and sidebar width, it appears that it does not take effect.

    2. I also installed the BETA child-theme of Omega, I’m using this on my other blog.

    I’ll like to modify the header, so that when I scroll down, it will remain on top and resize automatically.

    Any help with do?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The width of your theme’s .wrap determine how wide your .content and .sidebar can be. So you’ll need to adjust that, too.

    /**
     * .wrap is the container of .content and .sidebar
     * The max-width of .content and .sidebar should not be more than the max-width of .wrap
     */
    
    .wrap {
         max-width: 740px;
    }
    
    .content {
        width: 100%;
        max-width: 500px;
    }
    
    .sidebar-primary {
        width: 100% !important;
        max-width: 200px !important;
    }

    Don’t adjust the width, just adjust the max-width.

    Also, make sure that the combined max-width of .content and .sidebar not exceed that of the .wrap.

    —-

    As for making the header stick to the top even when scroll, this will do:

    /* Stick site-header to top */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    
    /* when logged in, adjust the position so that the logged-in admin-bar doesn't hide part of the nav */
    body.admin-bar .site-header {
        top: 32px;
    }
    
    /* give the site body some room at the top */
    body {
        margin-top: 96px;
    }

    I’m unsure what you want by “resize automatically” though? Reduce the height of the nav when scroll?

    Thread Starter Abiel

    (@aabuy)

    Thank you for the quick reply ThePixelMe.

    Let me try that and will let you know how it goes.

    With regards to the resizing header, Yes, it reduces the height and everything in the nav bar when scrolled down.

    similar to this effect.

    http://callmenick.com/_development/resize-header-on-scroll/

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot adjust the width of content and Sidebar’ is closed to new replies.