• I want to have an inline download button. The Twenty Twenty-One theme supports button and .wp-block-button classes, so I use button for an inline link. However, the button style is quite big in compared with the line (see https://i.imgur.com/helNYAc.png). I can manually customize the style, but I want to ask if there is any suggestion for it, so that everything is consistent. Where can I ask this?

Viewing 1 replies (of 1 total)
  • Hi. Looks like at the moment there is no great way to have inline buttons, other than editing the paragraph block that has the link, in HTML mode.

    You may add a custom class – say inline-button like this in the content:

    and then add this CSS code within
    **WP Admin -> Appearance -> Customize -> Additional CSS**

    /* styles for inline button */
    
    .inline-button a{
        color: #ffffff
    }
    
    .inline-button {
        padding: 1px 10px;
        border-radius: 20px;
    }

    It will then look similar to this

    I hope I understood your question correctly and hope this tip helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestions for custom element style’ is closed to new replies.