• Resolved dflancto

    (@dflancto)


    Hi,

    I have to say your theme is brilliant, thanks for making it so customizable πŸ™‚

    Is it possible to change the width of the content area for my whole website with a custom css plugin? I’m using the right side layout. I’m new to css so any help would be greatly appreciated.

    I wanted to make the content area and sidebar smaller in width.

    My site is http://personalpowerpro.com

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Thanks for the theme comment!

    Are you wanting your content area to be fluid as in 100% of any screen size, or wider but not too much, or smaller?

    Thread Starter dflancto

    (@dflancto)

    It’s perfect on mobile devices. I wanted to make the content and sidebar width smaller for larger screens like my laptop.

    Would setting a max width in my custom css plugin do the trick? Or would I need to put css code to increase left and right margins?

    Thanks so much for your quick reply

    David

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Actually, it would be a little more involved, although it can still be done using just CSS. This theme uses the Bootstrap grid framework for the layout, so to make the width a little smaller on desktop view, you will need to add some custom CSS in addition to the media queries for desktop view.

    One more question…is it just the content area only, or also the header and footer area as well? Once I know, I can give you an example of what you can do.

    Thread Starter dflancto

    (@dflancto)

    Just the content area only. Im happy with the header and footer.

    Thanks again

    David

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Hi David….it’s going on midnight for me here so hopefully you are not in a rush for this, but I will follow up with the solution for you tomorrow.

    Andre

    Thread Starter dflancto

    (@dflancto)

    No problem Andre, whenever you can, im in no rush :). I really appreciate it, thanks

    Theme Author Shaped Pixels

    (@shaped-pixels)

    I think I have the solution for you, but you will need to use a plugin like Simple Custom CSS for this. It also allows you to get theme updates without losing your custom changes.

    @media (min-width: 992px) {
    .site-main .container {
        width: 900px;
    }
    }
    @media (min-width: 1200px) {
    .site-main .container {
        width: 1000px;
    }
    }

    This will target only the “container” class in the main content area only. You can adjust the width’s that you see above, but I made them smaller than the default theme’s own widths:

    @media (min-width: 992px) {
    .container {
        width: 1000px;
    }
    }
    @media (min-width: 1200px) {
    .container {
        width: 1200px;
    }
    }
    Thread Starter dflancto

    (@dflancto)

    Andre,

    Superb:) Exactly what I wanted to do. Thanks a million for your help. It’s a class theme, delighted I found it. Thanks for your rapid responses too, much appreciated.

    All the best,
    David

    Theme Author Shaped Pixels

    (@shaped-pixels)

    You’re very welcome πŸ™‚

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Change Content Width of Emphasize Theme’ is closed to new replies.