Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to makes some modifications to the CSS for the standard Blog in the Website builder. Does anyone know where those CSS files for the Themes are located??
You can find the CSS, XML, and JS for the blog in:
I'd recommend leaving the core files alone, as otherwise you will lose your changes when you upgrade the module in the future.
You can refer to the following guide as a reference for inheriting and over-riding the standard CSS, XML, and JS:
What i'd recommend is creating a new, very basic module to override/replace the core files with your own modified files for the blog. You can do this by following the instructions below:
- Create a new directory in your addons directory for your module (eg. website_blog_mark)
- create an empty __init__.py file in that folder (this can be used to add python logic to your module later, but will be uneccessary for your current requirements)
- create an __openerp__.py with the following in it (you can change my customisations such as Blog CSS Mark Wells, etc.):
'name': 'Blog CSS Mark Wells',
'summary': 'News, Blogs, Announces, Discussions',
Mark Wells Blog
'author': 'Mark Wells',
- create a subdirectory in your theme called data
- create a file in data called theme.xml
- put the following content in theme.xml:
<?xml version="1.0" encoding="UTF-8"?>
- follow the instructions in the forum post link i've provided to either replace the files with your own custom css, js, and xml using xpath to inherit and replace files, or parts of files
- create a subdirectory in your modules root directory called static (eg. /addons/website_blog_mark/static)
- create subdirectories for css, js, xml, or whatever else you'd like to put into your module.
- in your theme.xml file you can add your custom css and js as required by using the module's path (eg. website_blog_mark/static/css/mark_theme.css)
Feel free to post back in the comments if you have any more questions.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/31/14, 3:13 PM|
|Seen: 2876 times|
|Last updated: 9/24/15, 10:33 PM|