Adding logo and title to 'Hero' theme
-
Hi!
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" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="https://gmpg.org/xfn/11"> <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 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> </head> <body <?php body_class(); ?>> <!--wrapper--> <div id="wrapper"> <!--headercontainer--> <div id="header_container"> <!--header--> <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--> <!--menu--> <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'); ?> </ul> <?php } else echo($navcheck); ?> </div> <!--menu end--> </div><!--header container end-->
And the blog is here.
Thanks in advance!!!
- The topic ‘Adding logo and title to 'Hero' theme’ is closed to new replies.