WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()

What comes to my mind is that You should check Your wp-settings.php file, as it should include wp-includes/blocks.php file where “register_block_type_from_metadata” function is defined check that file for this line of code: require ABSPATH . WPINC . ‘/blocks.php’; if its not there, then Your wordpress installation could have been either hacked or interupted while updating … Read more

Duplicate and change a Theme Widget

Widgets extend the Widget Class, search in the theme code for a class that extends WP_Widget. Copy/Paste it, rename it, and change what you’d like. You can also look in the file wp-includes/default-widgets.php and use one of those as a starting point.

WP admin bar only on some pages

First of all i would like to thank you for trying to help me!! i found out what was causing it: it was an error on the functions.php: it was missing: require get_template_directory() . ‘/inc/template-tags.php’; i have added it back to the functions.php and now everything seems to be working fine. Thank you! =)