Elements - Buttons

Use the Buttons content type to add either an individual button or a set of buttons in the Page Builder stage. You can arrange buttons horizontally or vertically, and add them directly to rows, columns, tabs, and banners on the stage.

Banner with a button on the storefront {width="600" modal="regular"}

NOTE
If you are making significant changes to Page Builder content, it is recommended that you increase the Admin Session Lifetime to prevent the session from timing out while you work.

Toolboxes

When you are working with the Buttons content type, you add and edit individual buttons and the buttons container that holds one or more buttons. Each has its own toolbox that you use to design buttons on the Page Builder stage.

Individual button toolbox

Button toolbox {width="500" modal="regular"}

Tool
Icon
Description
Settings
Settings icon {width="25"}
Opens the Edit Button page, where you can change the properties of the button.
Duplicate
Duplicate icon {width="25"}
Makes a copy of the button.
Remove
Remove icon {width="25"}
Deletes the button from the stage.

Buttons container toolbox

Buttons container toolbox {width="500" modal="regular"}

Tool
Icon
Description
Move
Move icon {width="25"}
Moves the button container to another valid place on the page.
Add
Add icon {width="25"}
Adds a button to the container.
(label)
Button
Identifies the current container as a button element.
Settings
Settings icon {width="25"}
Opens the Edit Buttons page, where you can change the properties of the container.
Hide
Hide icon {width="25"}
Hides the button container.
Show
Show icon {width="25"}
Shows the hidden button container.
Duplicate
Duplicate icon {width="25"}
Makes a copy of the button container.
Remove
Remove icon {width="25"}
Deletes the button container and its content from the stage.
NOTE
Hidden elements are stored in the database and invisible to customers. However, these elements are visible to search engines and other bots that crawl your site. They are also returned as part of the content if requested through an API call with an attribute of invisibility, unless you remove them from the stage.

Add an individual button

  1. In the Page Builder panel, expand Elements and drag a Buttons placeholder to a row, column, or tab set on the stage.

    Dragging a button to the stage {width="500" modal="regular"}

  2. Hover over the button to display the toolbox and choose the Settings ( Settings icon ) icon.

  3. Enter the Button Text to be displayed on the button.

    Basic button settings {width="600" modal="regular"}

  4. Set Button Type to one of the following:

    table 0-row-2 1-row-2 2-row-2 3-row-2 layout-auto
    Type Description
    Primary Applies the primary button style from the current style sheet.
    Secondary Applies the secondary button style from the current style sheet if applicable.
    Link Creates a hyperlink rather than a button.

    Primary and secondary button example {width="500" modal="regular"}

  5. Set the Button Link using one of the following types:

    • URL - Enter the destination URL for the link.

      The URL can be either a relative link to a product or page in your store, or a fully qualified URL.

      Relative URL example - ../luma-analog-watch.html

      Fully qualified URL example - http://mystore.com/luma-analog-watch.html

      If the link goes to a different website, you can keep the current page open to your store by opening the link in a new browser tab.

      To prevent the visitor from navigating away from your store, select the Open in new tab checkbox.

    • Product - Enter a product name (partial or full) or SKU, then choose the product name in the list.

      note note
      NOTE
      The products are displayed in the list according to the Show out of stock products settings. For Multi Source merchants using Inventory Management, the products list is limited by the source assigned to the default website only.

      Choosing a product for the button link {width="600" modal="regular"}

    • Category - Enter a category name (partial or full) or click in the blank field to display the category tree. Then, choose the category name in the tree.

      Choosing a category for the button link {width="600" modal="regular"}

    • Page - Enter the name of a CMS page (partial or full) or click in the blank field to display the full list. Then, choose the name of the page in the search results list.

      Choose CMS page for button link {width="600" modal="regular"}

  6. Complete the advanced settings as needed.

  7. When complete, click Save in the upper-right corner to apply the settings and return to the Page Builder workspace.

Add a set of buttons

The following sections describe a series of steps to start with an individual button and create a set of three buttons within a button container. If you do not already have an individual button, follow the previous instructions to add an individual button to the stage.

Step 1: Create the second button

  1. Hover over the button container to display the toolbox and choose the Add ( Add icon {width="20"} ) icon.

    Adding another button {width="500" modal="regular"}

  2. Enter the text that you want to appear on the second button.

  3. Click the new button to display its toolbox and choose the Settings ( Settings icon {width="20"} ) icon.

    Editing the button {width="500" modal="regular"}

  4. Set Button Type to Secondary.

  5. Set up the Button Link as needed.

    In the following example, the link is a relative URL that goes to the Contact Us page.

    Contact Us button settings {width="600" modal="regular"}

  6. Complete the advanced settings as needed.

  7. When complete, click Save to apply the settings and return to the Page Builder workspace.

Step 2: Create the third button

  1. Click the second button again on the stage and choose the Duplicate ( Duplicate icon {width="20"} ) icon.

    Duplicating a button {width="500" modal="regular"}

  2. Enter the text that you want to appear on the third button.

  3. Click the third button to display the toolbox and choose the Settings ( Settings icon {width="20"} ) icon.

    Toolbox for the third button {width="500" modal="regular"}

  4. Update the Button Link as needed.

  5. In the upper-right corner, click Save to apply the settings and return to the Page Builder workspace.

Step 3: Update the button container

  1. Hover over the button container to display the toolbox and choose the Settings ( Settings icon {width="20"} ) icon.

    Buttons container toolbox {width="500" modal="regular"}

  2. Under Appearance, choose Stacked.

  3. Set All Buttons are same size to Yes.

    Stacked buttons of the same size {width="300"}

  4. Update the remaining settings as needed, using the descriptions from Change settings for a button container.

  5. When complete, click Save to apply the settings and return to the Page Builder workspace.

    The complete stacked button set appears on the stage, with one primary button and two secondary buttons.

    Stacked buttons on the stage {width="500" modal="regular"}

Move a button

  1. Click the button that you want to move.

  2. Select and drag the Move ( Move icon {width="20"} ) icon, which appears just before the button text, to a new position for the button within the button container.

    Moving a button {width="500" modal="regular"}

Change settings for a button

  1. Click the button on the stage to display the toolbox and choose the Settings ( Settings icon {width="20"} ) icon.

    Button toolboxes {width="500" modal="regular"}

  2. Update the standard settings as needed.

    • Button Text - Enter the text to be displayed on the button (can also be updated directly from the stage).

    • Button Type - Determines the button format.

      table 0-row-2 1-row-2 2-row-2 3-row-2 layout-auto
      Type Description
      Primary Applies the primary button style from the current style sheet.
      Secondary Applies the secondary button style from the current style sheet, if applicable.
      Link Creates a hyperlink rather than a button.
    • Button Link - Determines the destination page that is served when the button is clicked.

      table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 layout-auto
      Option Description
      URL Uses either a relative or fully qualified URL to identify the destination page.
      Product Identifies the destination page based on the product name or SKU. The product name can be searched for based on either a partial or full name. The product is then chosen from the search results list.
      Category Identifies the destination page as a specific category or subcategory in the category tree.
      Page Identifies the destination page as a specific CMS page.
  3. Complete the advanced settings as needed.

  4. To save the settings and return to the Page Builder workspace, click Save in the upper-right corner.

Change settings for a button container

  1. Hover over the button container to display the toolbox and choose the Settings ( Settings icon {width="20"} ) icon.

  2. Update the Appearance settings as needed.

    • Use the arrangement options to display the buttons either horizontally or vertically in the container:

      table 0-row-2 1-row-2 2-row-2 layout-auto
      Option Description
      Inline Arranges the buttons horizontally.
      Stacked Arranges the buttons vertically.
    • Set the All buttons are same size option according to your preference.

      When set to Yes, all buttons in the container have a consistent size, based on the length of the longest button text.

  3. Complete the Advanced settings as needed.

  4. When complete, click Save to apply the settings and return to the Page Builder workspace.

Change advanced settings

You can modify the Advanced settings for individual buttons and for the button container.

  1. To control the positioning within the parent container, choose the Alignment:

    table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 layout-auto
    Option Description
    Default Applies the alignment default setting that is specified in the style sheet of the current theme.
    Left Aligns the content along the left border of the parent container, with allowance for any padding that is specified.
    Center Aligns the content in the center of the parent container, with allowance for any padding that is specified.
    Right Aligns the content along the right border of the parent container, with allowance for any padding that is specified.
  2. Set the Border style applied to all four sides of the button or buttons container:

    table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 6-row-2 7-row-2 8-row-2 9-row-2 10-row-2 layout-auto
    Option Description
    Default Applies the default border style that is specified by the associated style sheet.
    None Does not provide any visible indication of the container borders.
    Dotted The container border appears as a dotted line.
    Dashed The container border appears as a dashed line.
    Solid The container border appears as a solid line.
    Double The container border appears as a double line.
    Groove The container border appears as a grooved line.
    Ridge The container border appears as a ridged line.
    Inset The container border appears as an inset line.
    Outset The container border appears as an outset line.
  3. If you set a border style other than None, complete the border display options:

    table 0-row-2 1-row-2 2-row-2 3-row-2 layout-auto
    Option Description
    Border Color Specify the color by choosing a swatch, clicking the color picker, or by entering a valid color name or equivalent hexadecimal value.
    Border Width Enter the number of pixels for the border line width.
    Border Radius Enter the number of pixels to define the size of the radius that is used to round each corner of the border.
  4. (Optional) Specify the names of CSS classes from the current style sheet to apply to the button or buttons container.

    Separate multiple class names with a space.

  5. Enter values, in pixels, for the Margins and Padding to determine the outer margins and inner padding of the button or buttons container.

    Enter the corresponding values in the diagram.

    table 0-row-2 1-row-2 2-row-2 layout-auto
    Container area Description
    Margins The amount of blank space that is applied to the outside edge of all sides of the container. Options: Top / Right / Bottom / Left
    Padding The amount of blank space that is applied to the inside edge of all sides of the container. Options: Top / Right / Bottom / Left
recommendation-more-help
85b60248-86a4-4d5f-9933-5179643f608d