/* add html5 support */ add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script' ) ); /* add title tag support */ add_theme_support( 'title-tag' ); /* add custom thumbnail support */ add_theme_support( 'post-thumbnails' ); /* add custom logo support */ add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), 'unlink-homepage-logo' => true, ) ); /* Function to display logo in header */ function site_logo() { $custom_logo_id = get_theme_mod( 'custom_logo' ); $logo = wp_get_attachment_image_src( $custom_logo_id , 'full' ); if ( has_custom_logo() ) { echo ''; } else { echo '

' . get_bloginfo('name') . '

'; } } /* load styles and scripts */ function tp_scripts() { wp_enqueue_style( 'default', get_stylesheet_uri() ); wp_enqueue_style( 'bootstrap-min', get_template_directory_uri().'/css/bootstrap.min.css' ); wp_enqueue_script( 'jquery-local', get_template_directory_uri() . '/js/jquery.min.js', array(), '1.0.0', false ); // wp_enqueue_script( 'bootstrap-min', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '1.0.0', true ); wp_enqueue_script( 'bootstrap-bundle', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', array(), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'tp_scripts' ); /* custom excerpt length */ function tp_custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'tp_custom_excerpt_length', 999 ); /* Custom Excerpt read more text */ function tp_custom_excerpt_more($more) { global $post; return ' ...'; } add_filter('excerpt_more', 'tp_custom_excerpt_more'); Log In ‹ OtakuUpdates — WordPress

Powered by WordPress

← Go to OtakuUpdates