Customizing Logo And CSS Of Default Theme¶
In this section you will:
Use the Site control panel to add a custom logo
Customize the look of a Plone site by adjusting Less Variables
Add a custom toolbar logo
The Site control panel
The Resource Registries Control Panel
Resource Registries > Development Mode
Go to the Plone Control Panel:
Go to the Site control panel.
You will see this form:
You can now add / remove your custom logo
See the official docs.
Customize CSS/Less Variables¶
Go back to the Control Panel.
Go to the Resource Registries control panel.
On the first tab: enable Development Mode.
In the “plone” bundle below, click on develop CSS.
Your panel should now look like this:
Now we can play with some Less variables:
Go to the Less Variables tab.
Find the variable
plone-left-toolbar-expandedand set it to 400px.
Hit the Save button in the upper right and reload the page.
Go back to the Registry tab and hit the Build button for the
Click on the toolbar logo to expand the toolbar: voilá!
You can play around with some other variables, if you want.
“Development Mode” is really expensive for the browser. Depending on the browser and on the system, you might encounter extreme slowness while rendering the page.
You could see an unthemed page for a while. Remember to switch it off as soon as you finished tweaking.
However, when you now turn off development mode after changing some lesss variables, you will see that the changes you have just made in the Less Variables tab are no longer active in the theme. Development mode recompiles the theme resources on the fly for every request, but in production mode the theme will be compiled once or manually from the “Resource Registries” Control Panel. When you install Plone, the included and active Barceloneta theme is served from the filesystem. These compiled theme resources on the filesystem cannot be changed from within Plone.
In the next chapter we will make a custom copy of the Barceloneta Theme which will not be stored on the filesystem, but as a copy in the site database. When you activate this editable copy, your less variables will be included in the compiled resources of that theme.