Latte

Width template - Latte

Width template

by 2009bes » Mon Dec 21, 2015 11:54 am

How do I change the width of the template ????
User avatar
2009bes
Registered User
Posts: 2
Joined: Fri Nov 13, 2015 12:46 pm
Contact:

Re: Width template

by Flor1s » Tue Apr 26, 2016 8:35 pm

Edit the file latte{_red}/theme/_custom.scss.
Add something like

Code: Select all

.page-width {
    max-width: 1000px;
}

Then compile using the sccs compiler.
User avatar
Flor1s
Registered User
Posts: 31
Joined: Sun Sep 13, 2009 7:47 am
Location: Netherlands
Contact:

Re: Width template

by Arty » Wed Apr 27, 2016 9:27 am

Don't do that. Set value for $max-width in _custom_config.scss like this

Code: Select all

$max-width: 1000px;
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: Width template

by Flor1s » Wed Apr 27, 2016 9:29 am

Do it like Arty said then. :)
Thanks!
User avatar
Flor1s
Registered User
Posts: 31
Joined: Sun Sep 13, 2009 7:47 am
Location: Netherlands
Contact:

Re: Width template

by Astore » Sat Apr 21, 2018 9:05 pm

Hi, this is my file _custom_config.scss

Code: Select all

//
//	Add your custom configuration variables to this file.
//	See _style_config.scss for list of variables
//
//	This file requires SASS compiler.
//	You can find instructions here: http://www.artodia.com/phpbb-31-tutorials/compile-theme/
//


// Examples: (commented to prevent it from working)
// 
// $show-logo: true;
// $use-wrapper: false;
I've tried ti insert the line you have suggested

Code: Select all

$max-width: 1000px;
but nothing happend.
What did I do wrong?
How and where I have to insert it?
User avatar
Astore
Registered User
Posts: 28
Joined: Sun Jun 15, 2014 9:26 am
Contact:

Re: Width template

by Flor1s » Tue Apr 24, 2018 4:20 pm

Astore wrote: I've tried ti insert the line you have suggested

Code: Select all

$max-width: 1000px;
but nothing happend.
What did I do wrong?
How and where I have to insert it?
You need to run the 'Compile Themes' option under the 'Modifications' tab in the phpBB control panel. Only then the changes will be applied.
User avatar
Flor1s
Registered User
Posts: 31
Joined: Sun Sep 13, 2009 7:47 am
Location: Netherlands
Contact:

Re: Width template

by WWu777 » Mon May 25, 2020 11:20 am

Will that widen the width of this theme? The body of the board seems a bit thin. Will it widen it to the same width as the default Prosilver theme?

What if I just want to widen it a little like in the Elegance theme, but not way out to the edge like Prosilver? Like this one:

https://www.phpbb.com/customise/db/styl ... 2/demo/3.2
WWu777
Registered User
Posts: 802
Joined: Tue Aug 14, 2007 12:40 pm
Contact:

Re: Width template

by Flor1s » Mon May 25, 2020 11:26 am

Change the max width to the desired value. The theme you linked to, seems to be 1120 pixels wide.
User avatar
Flor1s
Registered User
Posts: 31
Joined: Sun Sep 13, 2009 7:47 am
Location: Netherlands
Contact: