Adding logo and title to 'Hero' theme (1 post)

  1. shakersinthedark
    Posted 2 years ago #


    I'm currently trying to change the 'Hero' theme from Anthemes to include both a logo image and the blog title but it seems to only want to do one or the other.

    Now I realise I could right the title into an image and then upload it but I would prefer not to do this so I need some help! Can you help me? I've been trying to amend the header.php file but I have to admit, I'm a bit of a novice with php... Here's the code in that file:

    <!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">
    		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    		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"; ?>
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php wp_head(); ?>
    <script type="text/javascript" src="//use.typekit.net/gtx4vqk.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
    <body <?php body_class(); ?>>
    	<div id="wrapper">
    	<div id="header_container">
    		<div id="header2">
    			<?php if ( ( of_get_option('logo_image') ) != '' ) { ?>
    		<div id="logo"><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="logo2"><a href="<?php echo home_url(); ?>" title="<?php bloginfo('description'); ?>"><?php bloginfo( 'name' ); ?></a></div><!--logo end-->
    	<?php } ?>
    		<div class="clear"></div>
    		</div><!-- header end-->
    		<div id="menubar">
    	<?php $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">
    		<li class="page_item"><a href="<?php echo home_url(); ?>" title="Home">Home</a></li>
    		<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
    <?php } else echo($navcheck); ?> 
    	<!--menu end-->
    	</div><!--header container end-->

    And the blog is here.

    Thanks in advance!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by shakersinthedark
  • This topic is not resolved
  • WordPress version: 3.5.1