How to Add an Icon in Buttons in WordPress

We can use the inline image feature of the block editor to insert an icon image in buttons. An inline image is an image that is inserted directly into the text of a document or webpage. It is not separated from the text and appears on the same line as the text. These images are commonly used to supplement the text and provide visual context or interest. They can be aligned in various ways, such as on the text’s left, right, or center.


Click the button block that you want to add an icon.


Place your cursor at the point where you want to insert the icon image.


Click on the “More Options” menu in the block top toolbar. These look like a down arrow icon.


From the menu, select the “Inline Image” option.


A window will pop up, allowing you to select an image from your media library or upload a new image.


Choose the image you want to insert and click “Select Button” to add it to the block.


The icon image will be added to the button as an inline image.


You can adjust the size of the image by clicking on the image.


This way, you can insert an icon in the button anywhere you like.

You may also join our Gutenberg Facebook Community where we all learn and help each other.

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe and Get Updates Weekly

Latest articles, blocks, templates, tools, news every week