---
url: https://docs.artemsemkin.com/velum/wp/features/button-actions.md
description: >-
  Make a button scroll to the top, scroll one screen down or open and close the
  burger menu with the Theme Action type, and link a button to a section of the
  same page with a CSS ID anchor.
---

# Making a button open the menu or scroll the page

The **Button** widget has a **Type** called **Theme Action** with three actions. There is no action that opens a popup.

## Choosing an action

**Button widget → Content → Button → Type**

#### ▶️ Step 1.

Click the **Button** widget. In the **Content** tab, open the **Button** section and set **Type** to **Theme Action**.

![Theme Action in Type reveals the Action list](https://docs.artemsemkin.com/velum/wp/images/header-menus/styling-the-burger-menu-6.png)

#### ▶️ Step 2.

Choose the **Action**:

* **Scroll Up** scrolls to the top of the page.
* **Scroll to Next Screen** scrolls one screen down. Inside a [Horizontal Scroll](./horizontal-scroll) section it scrolls to the next panel.
* **Toggle Burger Menu** opens the menu overlay, and closes it when it is open. On a page without a burger menu it does nothing.

#### ▶️ Step 3.

Click **Publish**, or **Update** on a page that is already published.

![Publish sits at the top right of the editor and turns active after your first change](https://docs.artemsemkin.com/velum/wp/images/footer/customizing-the-footer-4.png)

The **Call to Action** widget has the same **Type** and **Action**.

## Linking a button to a section of the same page

**Elementor editor → Advanced → Layout → CSS ID**

A link to a section is an ordinary link to a `#` name: you give the section a CSS ID, and the button links to that ID.

#### ▶️ Step 1.

Click the container of the section. Open the **Advanced** tab and type a name without spaces, such as `contact`, into **CSS ID** in the **Layout** section.

![CSS ID sits in the Layout section of the Advanced tab](https://docs.artemsemkin.com/velum/wp/images/features/button-actions-1.png)

#### ▶️ Step 2.

Click the **Button** widget and set **Type** to **Link**. Type `#contact` into **Link**.

#### ▶️ Step 3.

Click **Publish**, or **Update**.
