Skip to content

Latest commit

 

History

History
202 lines (150 loc) · 7.7 KB

File metadata and controls

202 lines (150 loc) · 7.7 KB

Elements

Elements help structure and present content effectively. They range from text-based components like :ref:`titles <website/elements/titles>`, :ref:`lists <website/elements/lists>` and :ref:`text highlights <website/elements/text_highlights>` to interactive ones such as :ref:`buttons <website/elements/buttons>` and :ref:`links <website/elements/links>`. Visual elements like :ref:`images <website/elements/images>`, :ref:`icons <website/elements/icons>`, :ref:`videos <website/elements/videos>`, and :ref:`animations <website/elements/animations>` can also be added to improve content presentation and organization.

To add or modify a website element:

  1. Navigate to the relevant website page and click on :guilabel:`Edit`.
  2. Click the section on the page where you want to add or modify an element.
  3. Make the necessary changes.
  4. Click on :guilabel:`Save`.

Note

The default styles for headings, buttons, links, and paragraph text, for example, are defined in the :doc:`Theme tab <themes>` of the website editor.

Type / to add website elements.

Titles

Titles define headings and organize website content into different levels for clarity and structure. To insert a title, type /title, choose the heading style (:guilabel:`Heading 1`, :guilabel:`Heading 2`, or :guilabel:`Heading 3`), and type the text.

Tip

Alternatively, type the text, select it, and choose the appropriate style from the :guilabel:`Inline Text` section in the :guilabel:`Customize` tab of the website editor. Additional formatting options, such as fonts and colors, are also available in this section.

Buttons

Buttons are interactive elements that allow to link to another page or to a page anchor. To insert a button:

  1. Type /button.
  2. Enter the button's label in the :guilabel:`Link Label` field.
  3. Add the :guilabel:`URL or Email`. Type / to search for a page and # to link to an anchor.
  4. Set the :guilabel:`Style`, :guilabel:`Size`, and :guilabel:`Layout` to define the button's appearance.
  5. If needed, toggle the switch to open the linked page or anchor in a new tab.
  6. Click :guilabel:`Apply` to save changes.

Tip

To modify an existing button, click the button and edit the options in the :guilabel:`Inline text` section of the website editor.

Images

To insert an image:

  1. Type /image.
  2. :doc:`Search the Unsplash database </applications/general/integrations/unsplash>` or click :guilabel:`Upload an image` to choose a file from your local images.
  3. Click :guilabel:`Add`.
  4. To customize the image, click on the image and edit the options in the :guilabel:`Image` section of the website editor. For example:

Videos

To add a video, type /video, insert the URL, and turn on the desired options:

Icons

To insert an icon, type /image, go to the :guilabel:`Icons` tab, select an icon, and click :guilabel:`Add`. To modify an icon, click on it and use the :guilabel:`Icon` section of the website editor to customize options, such as :guilabel:`Color`, :guilabel:`Size`, :ref:`Animations <website/elements/animations>`, :guilabel:`Shape`, etc.

Links

Links are used to connect different pages and resources, guiding visitors and improving navigation. To add a link, type /link, then, in the pop-up that opens, enter the link's :guilabel:`Label` and add the :guilabel:`URL or Email`. Type / to search for a page and # to link to an anchor.

Tip

By default, the :guilabel:`Style` field is set to :guilabel:`Link`. Select a different style to transform the link into a :ref:`button <website/elements/buttons>`.

Lists

Lists help organize content clearly, making information easier to read and improving web pages' structures. Type /list and choose from three different types of lists: :guilabel:`Bulleted lists`, :guilabel:`Numbered lists`, or :guilabel:`Checklists`.

Text highlights

Highlights can be added to titles and text using in the :guilabel:`Inline Text` section of the website editor. To add a highlight:

  1. Select the text or title you want to highlight.
  2. In the website editor, click on :guilabel:`Highlight`.
  3. Select the highlight style.
  4. Modify its :guilabel:`Color`.
  5. Choose its :guilabel:`Thickness`.

Highlight texts and titles

Animations

Animations are used to add movement to :doc:`building blocks <building_blocks>` and website elements such as images and text. Three types of animation are available: :guilabel:`On Scroll`, :guilabel:`On Appearance`, and :guilabel:`On Hover` (for images only).

To add an animation to a website element:

  1. Click on the element.
  2. In the website editor, go to the relevant section for the element (e.g., :guilabel:`Button`, :guilabel:`Column`, :guilabel:`Inline Text`, etc.).
  3. In the :guilabel:`Animation` field, select the desired animation type.
  4. Customize the animation settings as needed. Available options vary based on the selected animation type.

Animations on scroll

For animations on scroll, it is possible to:

Animations on appearance

For animations on appearance, it is possible to:

Animations on hover (for images only)

Animations :guilabel:`On hover` can be added to :ref:`images <website/elements/images>`. You can choose the :guilabel:`Effect` of the animation, as well as the :guilabel:`Color` and the :guilabel:`Stroke Width`.

.. seealso::
   :doc:`Odoo HTML editor </applications/essentials/html_editor>`