{"id":15365,"date":"2025-10-07T18:01:28","date_gmt":"2025-10-07T18:01:28","guid":{"rendered":"https:\/\/www.kadencewp.com\/help-center\/?post_type=docs&#038;p=15365"},"modified":"2026-04-22T14:40:20","modified_gmt":"2026-04-22T14:40:20","password":"","slug":"enable-ico-file-uploads","status":"publish","type":"docs","link":"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/enable-ico-file-uploads\/","title":{"rendered":"Enabling ICO File Uploads in WordPress"},"content":{"rendered":"\n<p>By default, WordPress restricts the upload of certain file types, including <code>.ico<\/code> files, for security reasons. If you\u2019re unable to upload an <code>.ico<\/code> file to your site, you can enable support for it using one of the methods outlined below.<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id15365_e51c39-bc .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);}.kb-table-of-content-nav.kb-table-of-content-id15365_e51c39-bc .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id15365_e51c39-bc .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id15365_e51c39-bc .kb-table-of-content-wrap .kb-table-of-content-list{font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}<\/style>\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading15365_de3fe0-ed, .wp-block-kadence-advancedheading.kt-adv-heading15365_de3fe0-ed[data-kb-block=\"kb-adv-heading15365_de3fe0-ed\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading15365_de3fe0-ed mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading15365_de3fe0-ed[data-kb-block=\"kb-adv-heading15365_de3fe0-ed\"] mark.kt-highlight{font-style:normal;color:#f76a0c;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.wp-block-kadence-advancedheading.kt-adv-heading15365_de3fe0-ed img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading15365_de3fe0-ed[data-kb-block=\"kb-adv-heading15365_de3fe0-ed\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h2 class=\"kt-adv-heading15365_de3fe0-ed wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading15365_de3fe0-ed\">Using a Plugin:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install and activate a plugin designed to enable support for additional file types. A common example is &#8220;<a href=\"https:\/\/wordpress.org\/plugins\/enable-svg-webp-ico-upload\/\" target=\"_blank\" rel=\"noreferrer noopener\">Enable SVG, WebP, and ICO Upload<\/a>&#8221; or similar plugins.<\/li>\n\n\n\n<li>After activation, navigate to the plugin&#8217;s settings to ensure ICO file uploads are enabled.<\/li>\n<\/ul>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading15365_9aef18-1b, .wp-block-kadence-advancedheading.kt-adv-heading15365_9aef18-1b[data-kb-block=\"kb-adv-heading15365_9aef18-1b\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading15365_9aef18-1b mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading15365_9aef18-1b[data-kb-block=\"kb-adv-heading15365_9aef18-1b\"] mark.kt-highlight{font-style:normal;color:#f76a0c;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.wp-block-kadence-advancedheading.kt-adv-heading15365_9aef18-1b img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading15365_9aef18-1b[data-kb-block=\"kb-adv-heading15365_9aef18-1b\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h2 class=\"kt-adv-heading15365_9aef18-1b wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading15365_9aef18-1b\">Modifying wp-config.php:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access your site&#8217;s files via FTP or your hosting provider&#8217;s CPanel. <\/li>\n\n\n\n<li>Locate the <code>wp-config.php<\/code> file in the root directory of your WordPress installation.&nbsp; <\/li>\n\n\n\n<li>Open the file for editing and add the following line of code before the line that says <code>\/* That's all, stop editing!Happy publishing.*\/<\/code>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">    define( 'ALLOW_UNFILTERED_UPLOADS', true );<\/code><\/pre>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading15365_1b1cd0-65, .wp-block-kadence-advancedheading.kt-adv-heading15365_1b1cd0-65[data-kb-block=\"kb-adv-heading15365_1b1cd0-65\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading15365_1b1cd0-65 mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading15365_1b1cd0-65[data-kb-block=\"kb-adv-heading15365_1b1cd0-65\"] mark.kt-highlight{font-style:normal;color:#f76a0c;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.wp-block-kadence-advancedheading.kt-adv-heading15365_1b1cd0-65 img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading15365_1b1cd0-65[data-kb-block=\"kb-adv-heading15365_1b1cd0-65\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h2 class=\"kt-adv-heading15365_1b1cd0-65 wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading15365_1b1cd0-65\">Adding ICO Support in functions.php (using Code Snippets):<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To enable ICO file uploads in WordPress <a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/how-to-add-a-custom-filter-or-function-with-code-snippets\/\">using a code snippets plugin<\/a> like &#8220;Code Snippets&#8221; or &#8220;WPCode,&#8221;.\n<ul class=\"wp-block-list\">\n<li><strong>Install and Activate the Code Snippets Plugin:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Navigate to Plugins &gt; Add New in your WordPress dashboard.<\/li>\n\n\n\n<li>Search for &#8220;<a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/how-to-add-a-custom-filter-or-function-with-code-snippets\/\">Code Snippets<\/a>&#8221; or &#8220;WPCode&#8221; and install and activate the desired plugin.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Add a New Snippet:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Go to Snippets &gt; Add New (or the equivalent menu item for your chosen plugin).<\/li>\n\n\n\n<li>Give your new snippet a descriptive title, such as &#8220;Allow ICO File Uploads.&#8221;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Insert the Code:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Copy and paste the following PHP code into the snippet content area:<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Save and Activate the Snippet:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Save the snippet.<\/li>\n\n\n\n<li>Ensure the snippet is activated. Most code snippet plugins have a toggle or checkbox for activation.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">    function my_custom_mime_types( $mimes ) {\n        $mimes['ico'] = 'image\/vnd.microsoft.icon';\n        return $mimes;\n    }\n    add_filter( 'upload_mimes', 'my_custom_mime_types' );<\/code><\/pre>\n\n\n\n<p>After completing these steps, you should be able to upload <code>.ico<\/code> files through the WordPress Media Library without encountering errors related to file type restrictions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, WordPress restricts the upload of certain file types, including .ico files, for security reasons. If you\u2019re unable to upload an .ico file to your site, you can enable support for it using one of the methods outlined below. Using a Plugin: Modifying wp-config.php: Adding ICO Support in functions.php (using Code Snippets): After completing&#8230;<\/p>\n","protected":false},"author":123883,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[394],"doc_tag":[],"knowledge_base":[6],"class_list":["post-15365","docs","type-docs","status-publish","hentry","doc_category-theme-general","knowledge_base-kadence-theme"],"year_month":"2026-04","word_count":314,"total_views":"1037","reactions":{"happy":"2","normal":"0","sad":"0"},"author_info":{"display_name":"","author_link":"https:\/\/www.kadencewp.com\/help-center\/author\/"},"doc_category_info":[{"term_name":"General WordPress","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/theme-general\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"Kadence Theme","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/","term_slug":"kadence-theme"}],"knowledge_base_slug":["kadence-theme"],"taxonomy_info":{"doc_category":[{"value":394,"label":"General WordPress"}],"knowledge_base":[{"value":6,"label":"Kadence Theme"}]},"featured_image_src_large":false,"comment_info":0,"_links":{"self":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/15365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/users\/123883"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/comments?post=15365"}],"version-history":[{"count":4,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/15365\/revisions"}],"predecessor-version":[{"id":15408,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/15365\/revisions\/15408"}],"wp:attachment":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/media?parent=15365"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_category?post=15365"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_tag?post=15365"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/knowledge_base?post=15365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}