Site width option

Hey what’s up,

I have an issue with setting up the right site with in the theme options for my website https://nudelmaschine-chefkoch.de/

For my homepage i found that a site width of 72% is great, but with this come a few problems:

  1. On mobile or generally a small screen, this width is way to small, the content gets squeezed. 90% would be way better.

  2. If 72% is great for my homepage that is a full width content layout, the secondary content (with a sidebar) on this page for example: https://nudelmaschine-chefkoch.de/manuelle-nudelmaschinen/ would be way better with a width around 80%

What is the best way to solve this width problem?
Can i set different site width for different pages and for mobile?
I also tried to solve this by adding margin on the sections of a page, but this doesn’t give good results on mobile.

Thanks a lot in advance,
Cédric Lorenz

Hi Cédric,

It could be done with the custom CSS, please add this custom CSS under Theme Options > CSS:

.x-content-sidebar-active .x-container.max.width {
    width: 80%;
}

@media (max-width: 979px){
    .x-content-sidebar-active .x-container.max.width,
    .home .x-container.width {
        width: 90% !important;
    }
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Hey Thai,

Thanks for this helpful reply.
I inserted the custom CSS and it worked perfectly fine!
I will look into the resources you shared and i am looking forward to getting a better understanding of CSS.

Anyways, awesome support,
Thanks

You’re most welcome, Cedric. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.