Search Divi Blog Extras Documentation

Search for answers or browse our knowledge base.

Table of Contents
< All Topics
Print

How to display button in post excerpt?

Due to limitations as third-party plugin developers on parsing shortcodes, we are not able to display the content of shortcodes in excerpts.

If you want to display a button, you can use HTML in the post excerpt instead of a shortcode.

One simple way to achieve this is to
1. Create a page.
2. Add a button module.

3. View the page and copy the HTML code of the button.


4. Edit the post and under Excerpt, paste the HTML you copied above. You can also use text before and after your button.

Note: To apply styles to the button, insert the inline CSS directly into the HTML code.

<a class="et_pb_button et_pb_button_0 et_pb_bg_layout_light" href="https://www.elegantthemes.com/join/" style="color:pink;">Join Now</a>