The custom fields are disabled in our themes, and here’s why; all the custom fields in our themes are created by us and they are all related to the themes in such a way to provide our customers with a streamlined experience. In order to avoid any possible conflicts between our custom fields and the default WordPress custom fields, we disabled these.
In other words, if you created your own custom field and gave it the same name as one of the existing ones which we created, it would have produced an error; we wanted to avoid this scenario.
However, if you wish to enable custom fields, simply add the code below at the end of functions.php file located in the theme folder or from WP Admin > Appearance > Editor > Theme Functions (functions.php):
remove_action('do_meta_boxes', ‘bridge_qode_remove_default_custom_fields');
In our example we used the Bridge theme from our Qode user profile, which is why the prefix here is as follows: bridge_qode Depending on the theme you are using, you should replace 'bridge' with the name corresponding to the theme you are using. Likewise, you should replace 'qode' with the appropriate profile name (this can be either mikado, edge, select, elated or qode, depending on the theme you are using).
It is good practice to use the child theme to create these types of changes because that way the changes will be permanent. If you continue using the main, parent theme, the changes will be lost with the next theme update.
When using the child theme, the code should be added like this inside the functions.php file:
add_action( 'after_setup_theme', 'add_parent_theme_metaboxes');
function add_parent_theme_metaboxes() {
remove_action('do_meta_boxes', 'bridge_qode_remove_default_custom_fields');
}
After you add the code above, go back to one of the posts, click Screen Options and there you will find the custom fields.
