Site logo

Archived topic

How to add second line in the button with smaller text size

1 reply · Started by Karsten on November 16, 2021

Viewing posts 1–2 of 2

Hey friends,

I am using this blue buttons on my landing pae and now I want to add a second line in the button with smaller text size. How could I achieve this? Thank you for your help.

Karsten

Hi there,

there isn't an option in the block editor for this.
You would need to use HTML to create the Button eg.

<a class="button two-line-button" href="the_url">The first line of text<span>The second line</span></a>

We can the add some styles to that button:

/* Button style */
a.two-line-button {
    background-color: #0366d6;
    color: #fff;
    padding: 15px 20px;
    display: block;
    text-align: center;
}
a.two-line-button:hover {
    background-color: #222;
}
/* Second line style */
a.two-line-button span {
    display: block;
    font-size: 12px;
}
This archived topic is closed to new replies.