|
| 1 | +=================== |
| 2 | +Headers and footers |
| 3 | +=================== |
| 4 | + |
| 5 | +The website header is the top section of a web page and usually contains elements such as the logo, |
| 6 | +the :ref:`menu <website/header_footer/header-content>`, the search bar, the sign-in/customer account |
| 7 | +button, etc. The footer is displayed at the bottom of a web page and usually contains information |
| 8 | +such as contact details, links, legal notices, and other options. |
| 9 | + |
| 10 | +Header design |
| 11 | +============= |
| 12 | + |
| 13 | +To modify the header's design, click on :guilabel:`Edit`, then click on the header. The following |
| 14 | +options are available in the :guilabel:`Header` section of the :guilabel:`Customize` tab in the |
| 15 | +website editor: |
| 16 | + |
| 17 | +- Choose a :guilabel:`Template` from the drop-down menu. |
| 18 | +- Select :guilabel:`Background` settings to change the color palette through different |
| 19 | + :ref:`Theme styles <website/themes/theme-colors>`, :guilabel:`Custom` color options, and |
| 20 | + :guilabel:`Gradient` ones. |
| 21 | +- When adding a :guilabel:`Border` to the header, its size, style, and color can be defined. |
| 22 | +- Adapt :guilabel:`Round corners` to fit the design. |
| 23 | +- Add a :guilabel:`Shadow` and define its :guilabel:`Color`, :guilabel:`Offset`, :guilabel:`Blur`, |
| 24 | + and :guilabel:`Spread`. |
| 25 | +- Add a :guilabel:`Scroll Effect`. Hover on an effect to preview it. |
| 26 | +- Choose the :guilabel:`Header Position` between :guilabel:`Regular`, :guilabel:`Hidden`, and |
| 27 | + :guilabel:`Over The Content`. When :guilabel:`Over The Content` is selected, you can customize |
| 28 | + the :guilabel:`Background` and :guilabel:`Text Color`. |
| 29 | +- Show or hide :guilabel:`Elements` such as text, the search bar, :guilabel:`Sign in` button, social |
| 30 | + media links, :guilabel:`Contact us` button, and logo. |
| 31 | + |
| 32 | +To finalize changes, click on :guilabel:`Save`. |
| 33 | + |
| 34 | +.. tip:: |
| 35 | + To hide the header, click on :guilabel:`Edit`, click on the header, and go to the |
| 36 | + :guilabel:`Theme` tab of the website editor. Scroll down to the :guilabel:`Advanced` section and |
| 37 | + toggle the :guilabel:`Show Header` switch to hide/show the header. |
| 38 | + |
| 39 | +.. _website/header_footer/header-content: |
| 40 | + |
| 41 | +Header content |
| 42 | +============== |
| 43 | + |
| 44 | +Menus organize the header’s content and help users navigate through web pages effectively. |
| 45 | +User-friendly and well-structured menus also play a crucial role in improving |
| 46 | +:doc:`search engine rankings <seo>`. |
| 47 | + |
| 48 | +.. _website/header_footer/menu-editor: |
| 49 | + |
| 50 | +Menu editor |
| 51 | +----------- |
| 52 | + |
| 53 | +The menu editor allows to edit the website's header and add |
| 54 | +:ref:`menu items <website/header_footer/menu-items>` and |
| 55 | +:ref:`mega menus <website/header_footer/mega-menus>`. |
| 56 | + |
| 57 | +To edit the header's content, go to :menuselection:`Website --> Site --> Menu Editor`. From there, |
| 58 | +you can: |
| 59 | + |
| 60 | +- **rename** a menu item or change its URL using the :guilabel:`Edit Menu Item` icon; |
| 61 | +- **delete** a menu item using the :guilabel:`Delete Menu Item` icon; |
| 62 | +- **move** a menu item by dragging and dropping it to the desired place in the menu; |
| 63 | +- **create a regular drop-down menu** by dragging and dropping the sub-menu items to the right, |
| 64 | + underneath their parent menu. |
| 65 | + |
| 66 | +.. image:: header_footer/menu-editor.png |
| 67 | + :alt: Menu editor with sub-menus |
| 68 | + |
| 69 | +.. note:: |
| 70 | + You can also access the menu editor by clicking :guilabel:`Edit`, selecting any menu item, and |
| 71 | + clicking the :guilabel:`Edit Menu` icon. |
| 72 | + |
| 73 | + .. image:: header_footer/edit-menu-icon.png |
| 74 | + :alt: Access the Menu editor while in Edit mode. |
| 75 | + |
| 76 | +.. _website/header_footer/menu-items: |
| 77 | + |
| 78 | +Adding menu items |
| 79 | +----------------- |
| 80 | + |
| 81 | +By default, pages are added to the menu as drop-down menu items when |
| 82 | +:doc:`they are created <../pages>`. To add a new menu item, follow these steps: |
| 83 | + |
| 84 | +#. Go to :menuselection:`Website --> Site --> Menu Editor`. |
| 85 | +#. In the menu editor, click :guilabel:`Add Menu Item`. |
| 86 | +#. In the pop-up window, enter the :guilabel:`Name` to be displayed in the menu. |
| 87 | +#. Type `/` in the :guilabel:`URL or Email` field to search for a page on your website or `#` to |
| 88 | + search for an existing custom anchor. |
| 89 | +#. Click :guilabel:`OK`. |
| 90 | +#. Edit the :ref:`menu structure <website/header_footer/menu-editor>` if needed, then |
| 91 | + :guilabel:`Save`. |
| 92 | + |
| 93 | +Menu item design |
| 94 | +~~~~~~~~~~~~~~~~ |
| 95 | + |
| 96 | +To modify the menu items, click on :guilabel:`Edit`, click on a menu item, then go to the |
| 97 | +:guilabel:`Navbar` section of the website editor. The following options are available: |
| 98 | + |
| 99 | +- Adapt the :guilabel:`Mobile Alignment`. |
| 100 | +- Choose the :guilabel:`Font` for the menu items. |
| 101 | +- Change the font size, color, and alignment in the :guilabel:`Format` field. |
| 102 | +- Select a :guilabel:`Links Style` to highlight the current page in the menu. |
| 103 | +- Change the :ref:`style of the header buttons <website/themes/button-styles>`. |
| 104 | +- Choose to display the :guilabel:`Sub Menus` :guilabel:`On Hover` or :guilabel:`On Click`. |
| 105 | + |
| 106 | +.. note:: |
| 107 | + The fields available in the :guilabel:`Navbar` section can vary depending on the chosen template. |
| 108 | + |
| 109 | +To finalize changes, click on :guilabel:`Save`. |
| 110 | + |
| 111 | +.. _website/header_footer/mega-menus: |
| 112 | + |
| 113 | +Mega menus |
| 114 | +---------- |
| 115 | + |
| 116 | +Mega menus are similar to drop-down menus, but instead of a simple list of sub-menus, they display a |
| 117 | +panel divided into groups of navigation options. This makes them suitable for websites with large |
| 118 | +amounts of content or :doc:`e-commerce websites <../../ecommerce>`, as they can help include all of |
| 119 | +your web pages or :doc:`e-commerce categories <../../ecommerce/products/catalog>` in the menu while |
| 120 | +still making all menu items visible at once. |
| 121 | + |
| 122 | +.. image:: header_footer/mega-menu.png |
| 123 | + :alt: Mega menu in the navigation bar. |
| 124 | + |
| 125 | +To create a mega menu, go to :menuselection:`Website --> Site --> Menu Editor` and click |
| 126 | +:guilabel:`Add Mega Menu Item`. Enter the :guilabel:`Name` of the mega menu in the pop-up, click |
| 127 | +:guilabel:`OK`, then :guilabel:`Save`. |
| 128 | + |
| 129 | +To adapt the options and content of the mega menu, click on a mega menu item in the header, then |
| 130 | +click :guilabel:`Edit`. Mega menus are composed of building blocks, which means you can customize |
| 131 | +each component individually. For example: |
| 132 | + |
| 133 | +- Edit the text directly in the building block. |
| 134 | +- Edit a menu item's URL by selecting the menu item and clicking the :guilabel:`Edit link` button |
| 135 | + in the small preview pop-up. Type `/` to search for a page on your website, or `#` to search for |
| 136 | + an existing custom anchor. |
| 137 | + |
| 138 | + .. image:: header_footer/mega-menu-option.png |
| 139 | + :alt: Edit a mega menu option. |
| 140 | + |
| 141 | +- Move a menu item by dragging and dropping the related block to the desired position in the mega |
| 142 | + menu. |
| 143 | +- Delete a menu item by deleting the related block. |
| 144 | + |
| 145 | +To adapt the general layout of the mega menu, go to the :guilabel:`Customize` tab of the website |
| 146 | +editor, then, in the :guilabel:`Mega Menu` section: |
| 147 | + |
| 148 | +- Choose a :guilabel:`Template`. |
| 149 | +- Pick the :guilabel:`Size`: either :guilabel:`Full-Width` or :guilabel:`Narrow`. |
| 150 | + |
| 151 | +To finalize changes, click on :guilabel:`Save`. |
| 152 | + |
| 153 | +Footer design |
| 154 | +============= |
| 155 | + |
| 156 | +To modify the footer, click on :guilabel:`Edit`, click on the footer, and in the :guilabel:`Footer` |
| 157 | +section of the :guilabel:`Customize` tab in the website editor: |
| 158 | + |
| 159 | +- Select a :guilabel:`Template`. |
| 160 | +- Choose its :guilabel:`Colors`. |
| 161 | +- Choose a :guilabel:`Slideout Effect`: :guilabel:`Regular` (i.e., no effect), |
| 162 | + :guilabel:`Slide Hover`, or :guilabel:`Shadow`. |
| 163 | +- Toggle the :guilabel:`Copyright` switch to hide or show the copyright. |
| 164 | +- Choose the :guilabel:`Border` size. |
| 165 | +- Add a :guilabel:`Shadow`. |
| 166 | +- Add a :guilabel:`Scroll Top Button` and choose its position. |
| 167 | +- Hide or show the footer by toggling the :guilabel:`Page visibility` switch. |
| 168 | + |
| 169 | +To finalize changes, click on :guilabel:`Save`. |
0 commit comments