Title: Create a button from shortcode
Last modified: May 3, 2023

---

# Create a button from shortcode

 *  [gianfrancocasalinuovo](https://wordpress.org/support/users/gianfrancocasalinuovo/)
 * (@gianfrancocasalinuovo)
 * [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/)
 * I am new to E2PDF and am trying to create a button in Elementor Pro using the
   shortcode [e2pdf-download id=”1″ name=”name” inline=”true”]. I enter the shortcode
   in the link field and when triggered a new window opens with about:blank#blocked.
   Trying to figure out if this is an Elementor issue of E2PDF and if there is a
   workaround.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [E2Pdf](https://wordpress.org/support/users/oleksandrz/)
 * (@oleksandrz)
 * [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/#post-16707560)
 * Hi,
 * Unfortunately for the Elementor Pro you need to use the “Shortcode” or the “Content”
   block. The “Link” object is not yet supported.
 * Can you try please to place the shortcode there and see if it will work?
 * We remain at your service.
 *  Thread Starter [gianfrancocasalinuovo](https://wordpress.org/support/users/gianfrancocasalinuovo/)
 * (@gianfrancocasalinuovo)
 * [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/#post-16707881)
 * Ironically the Shortcode block does not work but the Text block with shortcode
   placed as text does work. However it displays the word Download only. I was hoping
   to have a button not just a link. Any suggestions.
 *  Plugin Author [E2Pdf](https://wordpress.org/support/users/oleksandrz/)
 * (@oleksandrz)
 * [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/#post-16707925)
 * It’s possible to set custom text or <i> icon by changing “Button Title” under
   E2Pdf Template: [https://prnt.sc/fwRZnJWZqfyf](https://prnt.sc/fwRZnJWZqfyf)
 * Or via “button_title” attribute:
 *     ```wp-block-code
       [e2pdf-download id="1" name="name" inline="true" button_title="Custom Title"]
       ```
   
 * You can also add some custom “class” via the “class” attribute:
 *     ```wp-block-code
       [e2pdf-download id="1" name="name" inline="true" class="custom_class"]
       ```
   
 * Or another case, you can create custom button via “HTML” as, keep attention on“
   quotes” please:
 *     ```wp-block-code
       <a class="button" href="[e2pdf-download id=1  name='name' inline=true output=url esc_url_raw=true]" target="_blank" rel="noopener">Custom Text or Icon</a>
       ```
   
 *  Thread Starter [gianfrancocasalinuovo](https://wordpress.org/support/users/gianfrancocasalinuovo/)
 * (@gianfrancocasalinuovo)
 * [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/#post-16708487)
 * I am still testing to make sure the plugin will do what I need prior to purchasing
   and I am running into another issue that I hope you can help with.
 * I am using ACF Pro and one of my fields is a date. When I map the field it returns
   the date as YYYYMMDD I have the format in ACF and WordPress to be May 3, 2023.
   How do I correct this?
 * [e2pdf-wp key=”event_date” meta=”true”]
 *  Plugin Author [E2Pdf](https://wordpress.org/support/users/oleksandrz/)
 * (@oleksandrz)
 * [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/#post-16708535)
 * You can try to use native ACF shortcode as:
 *     ```wp-block-code
       [acf field="event_date" post_id="[id]"]
       ```
   
 * Or try to reformat the date with E2Pdf:
 *     ```wp-block-code
       [e2pdf-format-date format="F j, Y"][e2pdf-wp key="event_date" meta="true"][/e2pdf-format-date]
       ```
   
 * If none of the solutions will work, let us know please exact example of the shortcode
   output.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Create a button from shortcode’ is closed to new replies.

 * ![](https://ps.w.org/e2pdf/assets/icon-256x256.gif?rev=3491921)
 * [E2Pdf - Export Pdf Tool for WordPress](https://wordpress.org/plugins/e2pdf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/e2pdf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/e2pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/e2pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/e2pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/e2pdf/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 5 replies
 * 2 participants
 * Last reply from: [E2Pdf](https://wordpress.org/support/users/oleksandrz/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/create-a-button-from-shortcode/#post-16708535)
 * Status: not resolved