> <?php // Print the <title> tag based on what is being viewed. global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { echo ( ' | ' . $site_description ); } // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) { echo ( ' | ' . sprintf( 'Page %s', max( $paged, $page ) ) ); } ?> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to such * as styles, scripts, and meta tags. */ function common_scripts_method() { // register your scripts wp_register_script( 'jquery.placeholder.min', get_template_directory_uri() . '/js/jquery.placeholder.min.js', array( 'jquery' ) ); wp_register_script( 'script', get_template_directory_uri() . '/js/script.js', array( 'jquery' ), '1.0' ); // enqueue the scripts wp_enqueue_script( 'jquery.placeholder.min' ); wp_enqueue_script( 'script' ); } add_action( 'wp_enqueue_scripts', 'common_scripts_method' ); // For use on the Front end (ie. Theme) ?> >