Dette spørgsmål er blevet anmeldt
To remove the default side margins and make your Odoo website full-width, follow these steps:
Method 1: Using Website Editor (No Coding)
- Go to Website → Edit (enable edit mode).
- Click the "Theme" button (paintbrush icon in the top-right).
- Under Layout Options, look for:
- "Container: Fluid" → Enable this to stretch content to full width.
- If not available, try "Boxed: Off".
Method 2: Custom CSS (More Control)
- Go to Website → Customize → HTML/CSS Editor.
- Add this CSS to remove padding/margins:
css.container, .o_container_small { max-width: 100% !important; padding: 0 !important; } .oe_website_sale { width: 100% !important; } - Save and refresh your page.
Method 3: Edit Theme XML (Advanced)
If you’re using a custom theme:
- Override the main_layout template:
xml<template id="full_width_layout" inherit_id="website.layout"> <xpath expr="//main[@id='wrap']/div[hasclass('container')]" position="replace"> <div class="container-fluid"> <t t-call-content="content"/> </div> </xpath> </template> - Apply the changes via a custom module.
Troubleshooting
- If the navbar doesn’t stretch, add:
cssheader#top { max-width: 100% !important; } - For specific pages (like product view), target their containers:
css.oe_website_sale .container { width: 100% !important; }
Result
Your site (e.g., AETHERA) will now use the full screen width instead of the default centered layout.
Need help? Share a screenshot of the issue, and I’ll refine the solution! 🚀
🚀 Did This Solve Your Problem?
If this answer helped you save time, money, or frustration, consider:
✅ Upvoting (👍) to help others find it faster
✅ Marking as "Best Answer" if it resolved your issue
Your feedback keeps the Odoo community strong! 💪
(Need further customization? Drop a comment—I’m happy to refine the solution!)
Option 1 worked!
Theme -> Page Layout -> From Boxed to Full.
I marked and upvoted your comment.
Thanks Piyush :)
Glad it worked! Happy to help anytime.
Using the Website Editor (No Coding Required)
- Navigate to Website → Edit to enable edit mode.
- Click the Theme button (paintbrush icon) in the top-right corner.
-
Under Layout Options, locate the setting:
- Container: Fluid – Enable this option to stretch the content to full width across the screen.
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
1
maj 26
|
3825 | ||
|
|
0
maj 26
|
1 | ||
|
ecommerce and taxes
Løst
|
|
1
feb. 26
|
1693 | |
|
|
0
okt. 25
|
2004 | ||
|
|
2
jul. 25
|
5948 |