网站元素使用指南:标题、按钮、图片、视频、图标、链接、列表、文字高亮与动画
Elements
Elements help structure and present content effectively. They range from
text-based components like titles <website/elements/titles>, lists <website/elements/lists> and text highlights <website/elements/text_highlights> to interactive ones such as buttons <website/elements/buttons> and links <website/elements/links>. Visual
elements like images <website/elements/images>, icons <website/elements/icons>, videos <website/elements/videos>, and animations <website/elements/animations> can also be added to improve content presentation and organization.
To add or modify a website element:
- Navigate to the relevant website page and click on
Edit. - Click the section on the page where you want to add or modify an element.
- Make the necessary changes.
- Click on
Save.
:::: note ::: title Note :::
The default styles for headings, buttons, links, and paragraph text, for
example, are defined in the Theme tab <themes> of the website editor.
::::
Titles {#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
(Heading 1, Heading 2, or Heading 3), and type the text.
:::: tip ::: title Tip :::
Alternatively, type the text, select it, and choose the appropriate
style from the Inline Text section
in the Customize tab of the website
editor. Additional formatting options, such as fonts and colors, are
also available in this section.
::::
Buttons {#website/elements/buttons}
Buttons are interactive elements that allow to link to another page or to a page anchor. To insert a button:
- Type [/button].
- Enter the button's label in the
Link Labelfield. - Add the
URL or Email. Type [/] to search for a page and [#] to link to an anchor. - Set the
Style,Size, andLayoutto define the button's appearance. - If needed, toggle the switch to open the linked page or anchor in a new tab.
- Click
Applyto save changes.
:::: tip ::: title Tip :::
To modify an existing button, click the button and edit the options in
the Inline text section of the
website editor.
::::
Images {#website/elements/images}
To insert an image:
- Type [/image].
Search the Unsplash database </applications/general/integrations/unsplash>or clickUpload an imageto choose a file from your local images.- Click
Add. - To customize the image, click on the image and edit the options in
the
Imagesection of the website editor. For example:Replacethe image.- Define an [alt
tag](https://help.siteimprove.com/support/solutions/articles/80000448480-where-are-alt-tags- used-and-why-are-they-important)
in the
Descriptionfield. - Enter a title tag in the
Tooltipfield. This text will appear when visitors hover their mouse over the image. - Add a
Shape; some shapes also allow for color customization. - Adjust the image's
Width, e.g., to improve performance. A smaller size may be suggested if it is sufficient for display. - Resize the image using the
Transformtool. - Adjust the
Paddingto add space (in pixels) around the image. - Etc.
Videos {#website/elements/videos}
To add a video, type [/video], insert the URL, and turn on the desired options:
Autoplay: to automatically play the video when the page is accessed. The video is automatically muted by default.Loop: to play the video on a loop.Hide player controlsHide fullscreen button
Icons {#website/elements/icons}
To insert an icon, type [/image], go to the Icons tab, select an icon, and
click Add. To modify an icon, click
on it and use the Icon section of
the website editor to customize options, such as Color, Size, Animations <website/elements/animations>, Shape, etc.
Links {#website/elements/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 Label and add the URL or Email. Type [/]
to search for a page and [#] to link to an anchor <website/building_blocks/anchor>.
:::: tip ::: title Tip :::
By default, the Style field is set
to Link. Select a different style
to transform the link into a button <website/elements/buttons>.
::::
Lists {#website/elements/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: Bulleted lists, Numbered lists, or Checklists.
Text highlights {#website/elements/text_highlights}
Highlights can be added to titles and text using in the Inline Text section of the website
editor. To add a highlight:
- Select the text or title you want to highlight.
- In the website editor, click on
Highlight. - Select the highlight style.
- Modify its
Color. - Choose its
Thickness.
Animations {#website/elements/animations}
Animations are used to add movement to building blocks <building_blocks> and
website elements such as images and text. Three types of animation are
available: On Scroll, On Appearance, and On Hover (for images only).
To add an animation to a website element:
- Click on the element.
- In the website editor, go to the relevant section for the element
(e.g.,
Button,Column,Inline Text, etc.). - In the
Animationfield, select the desired animation type. - 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:
- Choose
Into add the animation when the element enters the screen andOut{.interpreted-text role=“guilabel”} to add it when it leaves the screen.- Select an
Effect.- Choose the
Directionof the effect.- Adapt the
Intensityof the effect.- Define the
Scroll Zone, where the first value represents the percentage of the screen shown when the effect starts, and the second value represents its percentage at the end.
Animations on appearance
For animations on appearance, it is possible to:
- Choose among different effects.
- Choose the
Directionof the effect.- Pick a
Triggeroption to define when the animation occurs: either theFirst Time onlyorEvery Time.- Adapt the
Intensityof the effect.- If you want the animation to be triggered after a number of seconds, define this number in the
Start After{.interpreted-text role=“guilabel”} field.- Choose a
Durationfor the animation.
Animations on hover (for images only)
Animations On hover can be added to images <website/elements/images>. You
can choose the Effect of the
animation, as well as the Color and
the Stroke Width.
::: seealso Odoo HTML editor </applications/essentials/html_editor> :::