This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Replies

1
  1. Andrew Misplon Staff 10 years, 10 months ago

    Hi Taylor Q

    Thanks for reaching out. Perhaps check the plugin directory to see if there is a plugin available that can help:

    https://wordpress.org/plugins/

    The manual method is outlined here: http://www.redbridgenet.com/how-to-upload-vcf-to-wordpress-for-download-via-media-uploader/

    Using that method you’d need:

    1. A child theme, here is the Vantage starter child theme for download:
    https://github.com/siteorigin/vantage-child

    2. You’d need to add the following to the functions.php file in the child theme:

    add_filter('upload_mimes', 'custom_upload_mimes');
    function custom_upload_mimes ( $existing_mimes=array() ) {
    	// add your extension to the array
    	$existing_mimes['vcf'] = 'text/x-vcard';
    	return $existing_mimes;
    }

    Finally you’d need to add the following to your .htaccess file, a file found in your web server root:

    AddType application/octet-stream vcf

    That needs to be added above the other WordPress info there.

    So all in all not a straightforward process. The above would let you upload a vCard to the media manager and make it download on click when added to a post or page.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread