|
1 |
| -============== |
2 |
| -Website themes |
3 |
| -============== |
| 1 | +============= |
| 2 | +General theme |
| 3 | +============= |
4 | 4 |
|
5 |
| -Odoo offers numerous themes to shape your website's style, including its colors, fonts, and layouts. |
6 |
| -When setting up your site using the Odoo website configurator, you are prompted to select a theme |
7 |
| -that aligns with your desired aesthetic. If you wish to modify the theme options later, navigate to |
8 |
| -the website builder by clicking the :guilabel:`Edit` button and access the :guilabel:`Theme` tab. |
9 |
| -The following sections are available: |
| 5 | +Odoo offers various options to shape your website’s theme, including its |
| 6 | +:ref:`colors <website/themes/colors>`, :ref:`fonts <website/themes/fonts>`, and |
| 7 | +:ref:`layout <website/themes/page-layouts>`. |
10 | 8 |
|
11 |
| -- :guilabel:`Colors`: The website builder relies on palettes composed of five colors: two |
12 |
| - :guilabel:`Main` colors and three :guilabel:`Light & Dark` colors. |
| 9 | +When setting up your website for the first time, you are prompted to select a theme. Hover your |
| 10 | +mouse over the themes to see an extended preview of each one. Click on a theme to select it. |
13 | 11 |
|
14 |
| - You can also customize the :guilabel:`Color Presets` that have been defined automatically by the |
15 |
| - website builder according to the five colors defined above. Click the arrow next to a color preset |
16 |
| - to update it. Each color preset contains colors for your building block's :guilabel:`Background`, |
17 |
| - :guilabel:`Text`, :guilabel:`Headings`, :guilabel:`Links`, :guilabel:`Primary Buttons`, and |
18 |
| - :guilabel:`Secondary Buttons`. |
| 12 | +.. note:: |
| 13 | + - If you leave without selecting a theme, your website is created using the default one. |
| 14 | + - You can :ref:`switch themes later <website/themes/switch>` if needed. |
19 | 15 |
|
20 |
| - .. image:: themes/colors.png |
21 |
| - :alt: select the colors of your website |
22 |
| - :scale: 75% |
| 16 | +In the website builder, the :guilabel:`Theme` tab offers various options to customize your website's |
| 17 | +general theme. To access it, click :guilabel:`Edit` and go to the :guilabel:`Theme` tab. |
23 | 18 |
|
24 |
| - **To apply a color preset** to a building block of your site, select it, go to the |
25 |
| - :guilabel:`Customize` tab, click the :guilabel:`Background` button, and select the preset. |
| 19 | +Once you have made the desired changes, click on :guilabel:`Save` to confirm and apply them to your |
| 20 | +website. |
26 | 21 |
|
27 |
| - .. note:: |
28 |
| - Changing a color preset automatically updates the colors of both the default preset and the |
29 |
| - building blocks where the preset is used. |
| 22 | +.. _website/themes/switch: |
30 | 23 |
|
31 |
| -- :guilabel:`Website`: From this section, you can :guilabel:`Switch Theme`, |
32 |
| - :doc:`Add a Language <../configuration/translate>`, select the :guilabel:`Page Layout`, and |
33 |
| - customize the :guilabel:`Background` by uploading your own image. |
| 24 | +Theme |
| 25 | +===== |
34 | 26 |
|
35 |
| -- :guilabel:`Paragraph`: Customize the formatting of your website's paragraph `<p>` elements. |
| 27 | +In the :guilabel:`Website` section, click on :guilabel:`Switch Theme` to open the theme selector. |
| 28 | +Hover your mouse over the themes to see an extended preview of each one. Click on a theme to apply |
| 29 | +it to your website. |
36 | 30 |
|
37 |
| - .. tip:: |
38 |
| - The :guilabel:`Font Family` field contains fonts that are hosted and served by Google servers. |
39 |
| - To add another font, click :guilabel:`Add a Google Font`, and, in the popup window, click |
40 |
| - :guilabel:`fonts.google.com`. |
| 31 | +.. _website/themes/colors: |
41 | 32 |
|
42 |
| - .. image:: themes/add-a-font.png |
43 |
| - :alt: Select the font you like |
44 |
| - :scale: 75% |
| 33 | +Colors |
| 34 | +====== |
45 | 35 |
|
46 |
| - Select a font you like, copy the address of the page, paste it in the :guilabel:`Google Font |
47 |
| - address` field, then click :guilabel:`Save and Reload`. The new font applies to your entire |
48 |
| - website. |
| 36 | +Odoo's website editor features two main types of colors: :ref:`theme colors <website/themes/theme-colors>` |
| 37 | +and :ref:`status colors <website/themes/status-colors>`. |
49 | 38 |
|
50 |
| -- :guilabel:`Headings`: Customize the formatting of your headings. |
| 39 | +.. _website/themes/theme-colors: |
51 | 40 |
|
52 |
| -- :guilabel:`Button`: Customize the :guilabel:`Primary Style` and :guilabel:`Secondary Style` |
53 |
| - buttons. |
| 41 | +Theme colors |
| 42 | +------------ |
54 | 43 |
|
55 |
| - .. image:: themes/buttons.png |
56 |
| - :alt: Two types of buttons in Odoo |
| 44 | +Theme colors refer to the set of colors displayed across all pages of your website. These are made |
| 45 | +of five colors: three main colors and two light and dark colors. |
57 | 46 |
|
58 |
| -- :guilabel:`Link`: To edit the style of the hyperlinks available on your website. |
| 47 | +To edit your website's colors, go to the :guilabel:`Colors` section in the website editor, then: |
59 | 48 |
|
60 |
| -- :guilabel:`Input Fields`: Customize fields where you can enter data, e.g., a search bar or a form. |
| 49 | +- Click on the color dot you want to change, then select a :guilabel:`Solid` color or click on |
| 50 | + :guilabel:`Custom` to pick a specific color tone manually (or add its #HEX or RGBA code). |
| 51 | +- Click on the paint palette icon and choose a color palette. As a result, all color customizations |
| 52 | + are reset; click a color dot to change a specific color. |
61 | 53 |
|
62 |
| -- :guilabel:`Advanced`: You can hide the header bar of your website using the |
63 |
| - :guilabel:`Show Header` button, inject :ref:`head and body code <analytics/google-tag-manager>`, |
64 |
| - enter your :guilabel:`Google Map Custom Key`, change the colors of the :guilabel:`Success`, |
65 |
| - :guilabel:`Info`, :guilabel:`Warning`, and :guilabel:`Error` pop up messages by clicking the |
66 |
| - related :guilabel:`Status Colors` buttons, and customize the :guilabel:`Grays` elements of your |
67 |
| - site. |
| 54 | +Odoo automatically creates :guilabel:`Color Presets` for your chosen palette. These are predefined |
| 55 | +color combinations applied to different elements of your website to provide a structured and |
| 56 | +visually appealing design. When you select a color palette, its presets define how those colors are |
| 57 | +distributed across different elements from a building block, such as buttons, backgrounds, and text. |
| 58 | +If you want to modify them, click on :guilabel:`Color Presets` and click on a preset to customize it |
| 59 | +further. Each color preset contains colors for your building block’s background, text, headings, |
| 60 | +links, primary buttons, and secondary buttons. |
68 | 61 |
|
69 |
| - .. example:: |
70 |
| - - The :guilabel:`Status Color` of the :guilabel:`Success` messages is set to green. |
| 62 | +.. image:: themes/color-presets.png |
| 63 | + :scale: 80% |
| 64 | + :alt: Color presets |
71 | 65 |
|
72 |
| - .. image:: themes/advanced.png |
73 |
| - :alt: Status colors success message set to green. |
| 66 | +To apply a color preset to a building block on your site, select the building block, go to the |
| 67 | +:guilabel:`Customize` tab, click the color dot located next to :guilabel:`Background`, and choose a |
| 68 | +:guilabel:`Theme`. |
74 | 69 |
|
75 |
| - .. image:: themes/success.png |
76 |
| - :alt: Success message is green |
| 70 | +.. note:: |
| 71 | + Changing a color preset automatically updates the colors of both the default preset and the |
| 72 | + building blocks where the preset is used. |
77 | 73 |
|
78 |
| - - Customizing the gray elements of your site. |
| 74 | +.. _website/themes/status-colors: |
79 | 75 |
|
80 |
| - .. image:: themes/grays.png |
81 |
| - :alt: Customize the grays elements of your site |
| 76 | +Status colors |
| 77 | +------------- |
| 78 | + |
| 79 | +Status colors are used to indicate the status of certain actions (e.g., :guilabel:`Success`, |
| 80 | +:guilabel:`Warning`, etc.). They're used in pop-up messages that appear to provide feedback to |
| 81 | +users and website visitors. To customize your website's :guilabel:`Status Colors`, scroll down to |
| 82 | +the :guilabel:`Advanced` section and click on the dots to change their color. |
| 83 | + |
| 84 | +.. example:: |
| 85 | + .. image:: themes/advanced.png |
| 86 | + :alt: Status color selection |
| 87 | + |
| 88 | + .. image:: themes/success.png |
| 89 | + :alt: Success pop-up |
| 90 | + |
| 91 | +.. _website/themes/page-layouts: |
| 92 | + |
| 93 | +Page layout |
| 94 | +=========== |
| 95 | + |
| 96 | +The :guilabel:`Page layout` option in the :guilabel:`Website` section allows you to change the |
| 97 | +overall display and spacing of building blocks and website elements on pages. Click the dropdown |
| 98 | +menu and select the desired layout. Under :guilabel:`Page Layout`, customize your |
| 99 | +:guilabel:`Background` by choosing an :guilabel:`Image`, using a selected image in a |
| 100 | +:guilabel:`Pattern`, or leaving it blank. |
| 101 | + |
| 102 | +.. _website/themes/fonts: |
| 103 | + |
| 104 | +Fonts |
| 105 | +===== |
| 106 | + |
| 107 | +Odoo allows you to customize the font family and size for specific elements on your website, |
| 108 | +including paragraphs, headings, buttons, and input fields. |
| 109 | + |
| 110 | +- :guilabel:`Font Family`: In the :guilabel:`Paragraph`, :guilabel:`Headings`, and |
| 111 | + :guilabel:`Button` sections, select a font from the dropdown menu. |
| 112 | + |
| 113 | +- :guilabel:`Font Size`: In the :guilabel:`Paragraph`, :guilabel:`Headings`, :guilabel:`Button`, and |
| 114 | + :guilabel:`Input Fields` sections, use the :guilabel:`Font Size` field to set a default size. |
| 115 | + Click the :icon:`fa-caret-right` (arrow) icon to expand the section and define custom sizes |
| 116 | + (e.g., based on the heading level, button size, etc.). |
| 117 | + |
| 118 | +Additionally, each element-specific section offers extra styling options, such as |
| 119 | +:guilabel:`Line Height` and :guilabel:`Margins`, for further customization. |
| 120 | + |
| 121 | +Custom fonts |
| 122 | +------------ |
| 123 | + |
| 124 | +It is possible to use fonts on your website that are not offered by default in Odoo. To add a custom |
| 125 | +font, click the dropdown menu related to the :guilabel:`Font Family` field and select :guilabel:`Add |
| 126 | +a Custom Font` at the bottom of the dropdown menu. In the pop-up window: |
| 127 | + |
| 128 | +- To add a Google font, click on :guilabel:`Select a Google Font` and click on the desired font |
| 129 | + in the list. Toggle off the :guilabel:`Serve font from Google servers` if your website is operated |
| 130 | + from a location where regulations require compliance with laws such as, but not limited to, the |
| 131 | + European Union's GDPR. This will ensure that the Google Font is stored on your website's server |
| 132 | + instead of Google's. |
| 133 | +- To upload a custom font from your computer, click on :guilabel:`Choose File`. |
| 134 | + |
| 135 | +Once done, click on :guilabel:`Save and Reload`. |
| 136 | + |
| 137 | +Button styles |
| 138 | +============= |
| 139 | + |
| 140 | +To customize the style of your website's primary and secondary buttons, navigate to the |
| 141 | +:guilabel:`Button` section in the website editor and edit the relevant options: |
| 142 | + |
| 143 | +- Click the arrow next to the :guilabel:`Primary Style` or :guilabel:`Secondary Style` fields and |
| 144 | + select one of the available styles for each type of button: :guilabel:`Fill`, :guilabel:`Outline`, |
| 145 | + or :guilabel:`Flat`. When selecting :guilabel:`Outline`, the :guilabel:`Border Width` option |
| 146 | +- :ref:`Modify the fonts <website/themes/fonts>`. |
| 147 | +- Adjust the :guilabel:`Padding` to change the size of the spacing (in pixels) around the buttons' |
| 148 | + labels. |
| 149 | +- Customize the buttons' border radius using the :guilabel:`Round Corners` option. |
| 150 | +- Add an animation when a button is clicked in the :guilabel:`On Click Effect` dropdown menu. |
| 151 | + |
| 152 | +.. image:: themes/buttons.png |
| 153 | + :alt: Primary and secondary buttons |
| 154 | + |
| 155 | +.. tip:: |
| 156 | + You can define custom :guilabel:`Small` and :guilabel:`Large` sizes for the buttons' |
| 157 | + :guilabel:`Padding`, :guilabel:`Font Size`, and :guilabel:`Round Corners`: Click on the |
| 158 | + :icon:`fa-caret-right` (arrow) icon and use the related fields. |
| 159 | + |
| 160 | + .. image:: themes/button-settings.png |
| 161 | + :scale: 80% |
| 162 | + :alt: Button padding, font size and round corners settings |
| 163 | + |
| 164 | +Link style |
| 165 | +========== |
| 166 | + |
| 167 | +In the :guilabel:`Link` section, click on :guilabel:`Link Style` to choose the appearance of links |
| 168 | +on your website. Select :guilabel:`No Underline`, :guilabel:`Underline On Hover`, or |
| 169 | +:guilabel:`Always Underline` in the dropdown menu. |
0 commit comments