Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

How to create and modify a functions.php file in a child theme

Home / Forums / Ascend Theme / How to create and modify a functions.php file in a child theme

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
December 9, 2019 at 3:19 am

Hi Ben,
I need to upload my books in EPUB files that is an extension file not allowed in WP. I found an article how to allow it adding some code in the functions.php of the theme, but of course I don’t like to add in your theme function. So as I am using a child theme can you explain how can add this code in a file called functions.php?
function addUploadMimes($mimes) {
$mimes = array_merge($mimes, array(
'epub|mobi' => 'application/octet-stream'
));
return $mimes;
}
add_filter('upload_mimes', 'addUploadMimes');

Thanks you
Angelo

  • The forum ‘Ascend Theme’ is closed to new topics and replies.