WordPress.org

Ready to get started?Download WordPress

Forums

Logo image AND text together (3 posts)

  1. shakersinthedark
    Member
    Posted 1 year ago #

    [mod: topic title moderated - http://codex.wordpress.org/Forum_Welcome#Choose_A_Good_Topic_Title ]

    I've been amending the 'application' theme...

    I want to include a image logomark image AND have title of the website next to it (but not as an image).

    Problem is, it seems to be either one or the other - I want both!

    Here's the header.php code - PLEASE HELP!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    	<head profile="http://gmpg.org/xfn/11">
    
    <script src="http://use.edgefonts.net/josefin-slab.js"></script> 
    
    		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    		<title><?php 	
    
    		wp_title( '|' );
    
    	// 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"; ?>
    
    		</title>
    
    <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(); ?>>
    
    	<!--wrapper-->
    	<div id="wrapper">
    
    		<!--header-->
    		<div id="header">
    
    <?php if ( ( of_get_option('logo_image') ) != '' ) { ?>
    		<div id="logo2"><a href="<?php echo home_url(); ?>" title="<?php bloginfo('description'); ?>"><img src="<?php echo of_get_option('logo_image'); ?>" alt="<?php echo of_get_option('footer_cr'); ?>" /></a></div><!--logo end-->
    	<?php } else { ?>
    			<div id="logo"><a href="<?php echo home_url(); ?>" title="<?php bloginfo('description'); ?>"><?php bloginfo( 'name' ); ?></a></div><!--logo end-->
    	<?php } ?>	
    
    			</div><!-- header end-->
    
    		<!--menu-->
    
    		<div class="menubar">
    
    		<!--nav bar-->
    
    		<div id="navbar">
    
    	<?php $navcheck = '' ; ?>
    
    	<?php if (function_exists( 'wp_nav_menu' )) {
    		$navcheck = wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'menu_class' => 'nav' ,'fallback_cb' => '', 'echo' => false ) );
    	} ?>
    
    		 <?php  if ($navcheck == '') { ?>
    
    	<ul class="nav">
    		<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
    
    	</ul>
    <?php } else echo($navcheck); ?> 
    
    </div><!--nav bar end-->
    
    			<div id="search-header">
    
    				<?php get_search_form(); ?>
    
    			</div><!--search header end-->
    
    	</div>
    	<!--menu end-->
  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Start by creating a Child Theme, then copy the theme's header.php file into your Child Theme directory.

  3. shakersinthedark
    Member
    Posted 1 year ago #

    That's great, thanks Andrew, I'll give that a go!

    Sorry, I'm a bit of a WordPress newbie!

Topic Closed

This topic has been closed to new replies.

About this Topic