• gianfrancocasalinuovo

    (@gianfrancocasalinuovo)


    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 Oleksandr

    (@oleksandrz)

    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

    (@gianfrancocasalinuovo)

    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 Oleksandr

    (@oleksandrz)

    It’s possible to set custom text or <i> icon by changing “Button Title” under E2Pdf Template: https://prnt.sc/fwRZnJWZqfyf

    Or via “button_title” attribute:

    [e2pdf-download id="1" name="name" inline="true" button_title="Custom Title"]

    You can also add some custom “class” via the “class” attribute:

    [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:

    <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

    (@gianfrancocasalinuovo)

    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 Oleksandr

    (@oleksandrz)

    You can try to use native ACF shortcode as:

    [acf field="event_date" post_id="[id]"]

    Or try to reformat the date with E2Pdf:

    [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.