How to make a download-button from "File Upload" field?

Support General How to make a download-button from "File Upload" field?Resolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39256
    s.liem@me.com[email protected]
    Participant

    Hi

    I have created a CF of the type "File Upload" for a CPT "Event". Then, I've created a template (via Kadence Theme Pro "Elements" feature) and added the field with the Image-Block (by GenerateBlocks) on a CPT-template. Now I'd like to apply a download-function to the image-block, but cannot find out how.

    Can you please help me with this?

    Thank you in advance and kind regards,
    Sascha

    #39269
    PeterPeter
    Moderator

    Hello Sascha,

    Meta Box is not compatible with Kadence Block yet. So I think it's not possible to add the file field URL to the image block of Kadence in this case. But you can create a custom shortcode to output the image with file URL download, please follow the documentation
    https://codex.wordpress.org/Shortcode_API
    https://docs.metabox.io/fields/file-upload/#template-usage

    #39280
    s.liem@me.com[email protected]
    Participant

    I'm not using the Kadence-Block, but GenerateBlocks. All other MB-fields are being displayed properly, only need to make the file-upload downloadable. How? The doc is a bit too technical for me to recreate on this site.

    Thank you in advance and kind regards,
    Sascha

    #39303
    PeterPeter
    Moderator

    Hello,

    Following the documentation, our plugins support outputting the field value with code. If you want to make a download button with a page builder plugin, please contact their support to ask for help with this case.
    Or you can use a page builder plugin that has integration with Meta Box like Oxygen, Elementor ... please read more here https://docs.metabox.io/compatibility/

    Or you can create your own shortcode and put the shortcode into the builder to display a download button.
    https://support.metabox.io/topic/adding-a-custom-field-as-a-link-to-an-elementor-button/#post-34356

    #39318
    s.liem@me.com[email protected]
    Participant

    Hey there,

    I don't use any pagebuilders. Kadence Blocks is a Gutenberg Block Library. can you help me?

    Thank you in advance and kind regards,
    Sascha

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.