Current page and saved state
Easy Accordion Menu can open the right branch when a page loads in two ways. Which one you get depends on Save State on the Module tab.
Current page (Save State: No)
Save State is No by default. On each page load the module looks for the menu link of the current page and opens every sub-menu above it. A visitor who opens a page three levels deep sees that branch open.
The link is found by comparing its address with the address in the browser. A page that has no menu item of its own, such as an article opened from a category list, does not open a branch.
In 6.0.1 items that show only an image (with Display Menu Item Title on No) do not open their branch this way.
Save State
With Save State on Yes, the module stores the branches the visitor opened in a cookie, one cookie per module, kept for a year. On the next page the same branches are open.
- The cookie is only saved on sites served over HTTPS. On a plain
http://site nothing is remembered. - The branch of the current page is not opened on its own. Only the branches the visitor opened before are open.
- If you add or move menu items, the saved branches may point to other items. They are corrected the next time the visitor opens a branch.
If your site has a cookie consent rule, note that this cookie stores menu state only.
The current item
The menu item of the current page is marked, and so are its parents:
| Theme | How the current item looks |
|---|---|
| simple | Its text is a little bolder. |
| Light | A dark background with white text. |
| Dark | A darker background with white text. |
| custom | The Active Links Color, Active Background Link Color and Active Link Font Weight you set. See Layout tab. |
A Menu Item Alias that points to the current page is marked too.