Support » Theme: Hellish Simplicity » Use Image in Header instead of Text?

  • Resolved m2c1r


    Any chance you would feel like posting a snippet of code here so I can use an image instead of the text for the header? 🙂 I can put the image URL in the Header file if I had a clue how to put the code bit in that would surround it…

    Love the theme overall! Cheers,


Viewing 1 replies (of 1 total)
  • Theme Author Ryan Hellyer


    Sorry, but I didn’t see your question until now.

    Below is a replacement header.php file which displays an image instead of text in the header. It doesn’t use the WordPress custom header functionality, but you can always adapt it to use that if you want. Or you can simply change the image URL I’ve used to save coding all that stuff in.

     * The Header for our theme.
     * Displays all of the <head> section and everything up till <div id="main">
     * @package Hellish Simplicity
     * @since Hellish Simplicity 1.1
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <?php wp_head(); ?>
    <body <?php body_class(); ?>>
    <header id="site-header" role="banner">
    	<div class="hgroup">
    		<img src="" alt="" style="width:100%;height:auto;" />
    	</div><!-- .hgroup -->
    </header><!-- #masthead -->
    <div id="main" class="site-main">

    Note: I haven’t tested the above code. So if something doesn’t work, just let me know and I’ll take a closer look for you 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Use Image in Header instead of Text?’ is closed to new replies.