'f1f1f1' ) ); add_theme_support( 'custom-header' ); // hard crop center center set_post_thumbnail_size(750, 465, ['center', 'center']); add_image_size( 'nextblog-small', 350, 250, ['center', 'center'] ); // register navigation menus register_nav_menus( [ 'primary' => esc_html__('Primary Menu', 'nextblog'), 'footermenu' => esc_html__('Footer Menu', 'nextblog'), ] ); // HTML5 markup support for search form, comment form, and comments add_theme_support('html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' )); /* * Enable support for wide alignment class for Gutenberg blocks. */ add_theme_support( 'align-wide' ); add_theme_support( 'editor-styles' ); add_theme_support( 'wp-block-styles' ); add_editor_style( array( NEXTBLOG_CSS . '/gutenberg-editor-custom.css' ) ); } add_action('after_setup_theme', 'nextblog_setup'); add_action('enqueue_block_editor_assets', 'nextblog_action_enqueue_block_editor_assets' ); function nextblog_action_enqueue_block_editor_assets() { wp_enqueue_style( 'nextblog-fonts', nextblog_google_fonts_url(['Zilla Slab:300,300i,400,400i,500,600,700,800,900', 'Open Sans:400,700']), null, NEXTBLOG_VERSION ); wp_enqueue_style( 'nextblog-gutenberg-editor-font-awesome-styles', NEXTBLOG_CSS . '/font-awesome.css', null, NEXTBLOG_VERSION ); wp_enqueue_style( 'nextblog-gutenberg-editor-styles', NEXTBLOG_CSS . '/gutenberg-custom.css', null, NEXTBLOG_VERSION ); wp_enqueue_style( 'nextblog-gutenberg-blog-styles', NEXTBLOG_CSS . '/blog.css', null, NEXTBLOG_VERSION ); } // hooks for unyson framework // ---------------------------------------------------------------------------------------- function nextblog_framework_customizations_path($rel_path) { return '/inc'; } add_filter('fw_framework_customizations_dir_rel_path', 'nextblog_framework_customizations_path'); function nextblog_remove_fw_settings() { remove_submenu_page( 'themes.php', 'fw-settings' ); } add_action( 'admin_menu', 'nextblog_remove_fw_settings', 999 ); // include the init.php // ---------------------------------------------------------------------------------------- require_once( NEXTBLOG_INC . '/init.php');