tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* register NAV menus */ register_nav_menus( array( 'header_menu_1' => 'Header Menu 1', ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'gallery', 'caption', ) ); // Indicate widget sidebars can use selective refresh in the Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); } endif; // blueice_setup add_action( 'after_setup_theme', 'blueice_setup' ); /** * Register widget area. * * @since Twenty Fifteen 1.0 * * @link https://codex.wordpress.org/Function_Reference/register_sidebar */ function blueice_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar on right', 'blueice' ), 'id' => 'sidebar-right', 'description' => __( 'Add widgets here to appear in your sidebar.', 'blueice' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'blueice_widgets_init' ); function blueice_theme_style() { wp_enqueue_style( 'blueice-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'blueice_theme_style' ); /* CONTENT WIDTH */ function blueice_content_width() { $GLOBALS['content_width'] = apply_filters( 'blueice_content_width', 1000 ); } add_action( 'after_setup_theme', 'blueice_content_width', 0 ); /** * Enqueue scripts and styles. */ function blueice_express_scripts() { wp_enqueue_script('blueice_express_ddmenu', get_template_directory_uri() . '/assets/js/drop_menu_selection.js', array('jquery-effects-slide'), false, true); } add_action('wp_enqueue_scripts', 'blueice_express_scripts'); add_filter ('bbp_get_title_max_length','change_title') ; Function change_title ($default) { $default=800; Return $default ; }