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.
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
Buttons container toolbox
Add an individual button
-
In the Page Builder panel, expand Elements and drag a Buttons placeholder to a row, column, or tab set on the stage.
{width="500" modal="regular"}
-
Hover over the button to display the toolbox and choose the Settings (
) icon.
-
Enter the Button Text to be displayed on the button.
{width="600" modal="regular"}
-
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 PrimaryApplies the primary button style from the current style sheet. SecondaryApplies the secondary button style from the current style sheet if applicable. LinkCreates a hyperlink rather than a button. {width="500" modal="regular"}
-
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.htmlFully qualified URL example -
http://mystore.com/luma-analog-watch.htmlIf 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. {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.
{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.
{width="600" modal="regular"}
-
-
Complete the advanced settings as needed.
-
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
-
Hover over the button container to display the toolbox and choose the Add (
{width="20"} ) icon.
{width="500" modal="regular"}
-
Enter the text that you want to appear on the second button.
-
Click the new button to display its toolbox and choose the Settings (
{width="20"} ) icon.
{width="500" modal="regular"}
-
Set Button Type to
Secondary. -
Set up the Button Link as needed.
In the following example, the link is a relative URL that goes to the Contact Us page.
{width="600" modal="regular"}
-
Complete the advanced settings as needed.
-
When complete, click Save to apply the settings and return to the Page Builder workspace.
Step 2: Create the third button
-
Click the second button again on the stage and choose the Duplicate (
{width="20"} ) icon.
{width="500" modal="regular"}
-
Enter the text that you want to appear on the third button.
-
Click the third button to display the toolbox and choose the Settings (
{width="20"} ) icon.
{width="500" modal="regular"}
-
Update the Button Link as needed.
-
In the upper-right corner, click Save to apply the settings and return to the Page Builder workspace.
Step 3: Update the button container
-
Hover over the button container to display the toolbox and choose the Settings (
{width="20"} ) icon.
{width="500" modal="regular"}
-
Under Appearance, choose Stacked.
-
Set All Buttons are same size to
Yes. {width="300"}
-
Update the remaining settings as needed, using the descriptions from Change settings for a button container.
-
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.
{width="500" modal="regular"}
Move a button
-
Click the button that you want to move.
-
Select and drag the Move (
{width="20"} ) icon, which appears just before the button text, to a new position for the button within the button container.
{width="500" modal="regular"}
Change settings for a button
-
Click the button on the stage to display the toolbox and choose the Settings (
{width="20"} ) icon.
{width="500" modal="regular"}
-
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 PrimaryApplies the primary button style from the current style sheet. SecondaryApplies the secondary button style from the current style sheet, if applicable. LinkCreates 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 URLUses either a relative or fully qualified URL to identify the destination page. ProductIdentifies 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. CategoryIdentifies the destination page as a specific category or subcategory in the category tree. PageIdentifies the destination page as a specific CMS page.
-
-
Complete the advanced settings as needed.
-
To save the settings and return to the Page Builder workspace, click Save in the upper-right corner.
Change settings for a button container
-
Hover over the button container to display the toolbox and choose the Settings (
{width="20"} ) icon.
-
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 InlineArranges the buttons horizontally. StackedArranges 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.
-
-
Complete the Advanced settings as needed.
-
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.
-
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 DefaultApplies the alignment default setting that is specified in the style sheet of the current theme. LeftAligns the content along the left border of the parent container, with allowance for any padding that is specified. CenterAligns the content in the center of the parent container, with allowance for any padding that is specified. RightAligns the content along the right border of the parent container, with allowance for any padding that is specified. -
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 DefaultApplies the default border style that is specified by the associated style sheet. NoneDoes not provide any visible indication of the container borders. DottedThe container border appears as a dotted line. DashedThe container border appears as a dashed line. SolidThe container border appears as a solid line. DoubleThe container border appears as a double line. GrooveThe container border appears as a grooved line. RidgeThe container border appears as a ridged line. InsetThe container border appears as an inset line. OutsetThe container border appears as an outset line. -
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. -
(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.
-
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/LeftPadding The amount of blank space that is applied to the inside edge of all sides of the container. Options: Top/Right/Bottom/Left