How to place the button next to each other

I want one of the buttons on the right and one on the left.

I would also like to know how to reduce the size of this button. It is too big for the text.

my shop: https://mi8w9lspkvkx4fju-78296449301.shopifypreview.com

1 Like

@PedroPrado - add this css to the end of your base.css file and check

#shopify-section-template--21856293880085__rich_text_cmJTJN .rich-text__buttons{flex-wrap: nowrap !important;}

Hi @PedroPrado ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

.rich-text__buttons.rich-text__buttons--multiple {
    flex-wrap: nowrap !important;
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

I know almost nothing about css or html or how to use shopify’s codes. Please be more specific.

I didn’t understand the part “Step 3: Insert the below code at the bottom of the file → Save”.
Where is the file the button I want?

1 Like

Hi @PedroPrado , Can you take a screenshot of the css file you currently have?

HI, I don’t understand if this is what you asked me to do.

Hi @PedroPrado ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

.rich-text__buttons.rich-text__buttons--multiple {
    flex-wrap: nowrap !important;
}

Hope this can help you

1 Like

Hi @PedroPrado

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

.rich-text__buttons {
    max-width: 100%;
}
.rich-text__buttons a.button:first-child {
    padding: 0px;
}

And Save.

Result: