I’m new to WordPress and don’t have any coding experience. Recently, I created my first portfolio website, diving into web design for the first time. I’m facing an issue with adding a vCard (.vcf) file to enable saving my contact information on smartphones.
While it works perfectly on iOS, Android seems to open the vcf file as a text document rather than directly importing it into the contacts app. I’m looking for a solution to ensure that the vcf file can be easily managed and opened within the contacts app on Android. Any guidance on how to resolve this would be greatly appreciated.
]]>I am currently working on a project that uses this plugin and after setting up multiple vCards for member profiles, I’ve run into some issues.
Firstly, when I download a vCard what I have generated and try to open it with the default Windows app (People), it opens and then immediately crashes. After poking around, I’ve found that if I open the .vcf file in VS Code, and press save without actually changing anything, the card functions as expected and opens the People app with the relevant information contained in the card.
Another issue is when I’m trying to add an image to the card. I upload and press save but the images doesn’t save and the image field is empty on refresh.
I am running this site on PHP 8.2 WordPress 6.3.1.
Happy to provide and additional information if required.
Thanks
Jake
]]>Is there any way to create a button to download the contact information. For example to save them directly to the smartphone? Or any customisation service to do this?
Kind regards, Kevin
]]>Any suggestions on how to fix this?
]]>thank you.
Sorry for my bad English
]]>thank you.
]]>Not working on Core Versions 4.9.9/5.0.3
It is working on Core Version 4.9.5
The filter function to add the mime types doesn’t help.
add_filter('upload_mimes', function( $existing_mimes = array() ) {
$existing_mimes['vcf'] = 'text/x-vcard';
return $existing_mimes;
});
The define('ALLOW_UNFILTERED_UPLOADS', true);
in wpconfig helps but this is not a solution.
Thoughts?
]]>function be_enable_vcard_upload( $mime_types ){
$mime_types['vcf'] = 'text/x-vcard';
return $mime_types;
}
add_filter('upload_mimes', 'be_enable_vcard_upload' );
But this doesnet work.
]]>So, some hints for a dummy on where to start would be greatly appreciated.
(I know the structure of the vCard, I only need help in how to extend / customize Torro Forms. Does it go in functions.php of the theme or an additional plugin. Some handholding to start would help a lot)
]]>