WordPress.org

Ready to get started?Download WordPress

Forums

Custom Community
[resolved] vCard (8 posts)

  1. staceyd
    Member
    Posted 1 year ago #

    Need help adding vCard. Tried uploading to media library unsuccessfully.
    Get this error message...
    "Error saving media attachment."

  2. konradS
    Member
    Posted 1 year ago #

    hi staceyd, do you mean microformats support?

    there's an open issue and some instruction here:
    https://github.com/Themekraft/Custom-Community/issues/107

    maybe that helps, let me know, konrad

  3. staceyd
    Member
    Posted 1 year ago #

    I'm sorry if I posted wrong. I'm trying to get more info.

    Have been reading for days trying to figure out how to put a vCard on WordPress. Have nice little icon ready to attach a link to. Even added the file to WP-content on server's file management but cannot find it. Any help MUCH appreciated. sorry don't know what microformats are.

  4. konradS
    Member
    Posted 1 year ago #

    hi staceyd, do you mean adding the vcard to your media library?

    i think its not allowed as standard post type, but found an some articles when googling it, for example here, do you mean this?

    http://www.redbridgenet.com/wordpress/how-to-upload-vcf-to-wordpress-for-download-via-media-uploader/

    hope this helps, konrad

  5. staceyd
    Member
    Posted 1 year ago #

    Found that same article yesterday. I don't understand the first step.

    Where do I add the following... in CSS?

    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;
    }

    I do understand the second step after much searching.

  6. konradS
    Member
    Posted 1 year ago #

    hi staceyd,

    you would need to add this into a php file! it's no CSS and will not worl in CSS files..

    create a child theme, as changing theme files is not good (loosing all changes with every update, as theme files get replaced with updating)

    and then have just a style.css and a functions.php

    check here for more info:
    http://support.themekraft.com/entries/20916508-Create-Child-Themes

    then create a functions.php and copy the stuff above inside!

    let me know how it worked out! :) konrad

  7. staceyd
    Member
    Posted 1 year ago #

    IT WORKED!!!! put into theme's functions.php

  8. konradS
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags