WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Seismic Slate} (1 post)

  1. govcam@aol.com
    Member
    Posted 1 year ago #

    I am new to using WordPress, and do not have experience with coding. I would like to add my logo to the center of my header (between my SIte Title and Tagline, and the Search box). My logo has been uploaded to my media files, so I have the URL.

    This is the current code in the header .php file:

    <?php
    /**
     * The Header for our theme.
     *
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?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', 'slate' ), max( $paged, $page ) );
    
    	?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri(); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    	wp_head();
    ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="header">
    		<div id="branding">
    			<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    			<<?php echo $heading_tag; ?> id="site-title" >
    				<span>
    					<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    				</span>
    			</<?php echo $heading_tag; ?>>
    			<div id="site-description"><?php bloginfo( 'description' ); ?></div>
    		</div><!-- branding -->
    				<div id="site-search">
    					<form role="search" method="get" action="<?php echo home_url( '/' ); ?>">
    					    <div><label class="screen-reader-text" for="s">Search for:</label>
    						<input type="text" value="" name="s" id="s" placeholder="Search" />
    						<input type="submit" class="button search" value="Search" />
    					    </div>
    					</form>
    				</div><!-- site-search -->
    		<div class="clear"></div>
    	<div id="access" class="normal" role="navigation">
    		<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'slate' ); ?>"><?php _e( 'Skip to content', 'slate' ); ?></a></div>
    
    		<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    	</div><!-- #access -->
    </div><!-- #header -->
    <div id="wrapper" class="hfeed">
    	<div id="main">

    Do I also need to update the .css style sheet?

    Help is much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic