How to add an image to a header
-
Hello!
I’m trying to add an image to my header and I don’t know what code to use or where to add the code so the image appears where I want.
Specifically in my header there is an opt in box. Where I say sign up and get your free e-video. I have since had an image of a DVD box that I want to add and this is what I would like your help with.
II have posted the full code from header.php. for your convenience.
From the research I’ve done I thought the code was <img src=”/images/GoalsMadeEasy”> So I’ve added that to where I would like it to show but nothing happens.
I would really appreciate someone walking me through what to do. What the exact code is and where to add it. I have uploaded the image into the media file and currently it is unattached. Not sure if you need to know this or not!
Thanks so much for in advance for your help.
Smiles
Jewells<?php // Creating the doctype thematic_create_doctype(); echo " "; language_attributes(); echo ">\n"; // Creating the head profile thematic_head_profile(); // Creating the doc title thematic_doctitle(); // Creating the content type thematic_create_contenttype(); // Creating the description thematic_show_description(); // Creating the robots tags thematic_show_robots(); // Creating the canonical URL thematic_canonical_url(); // Loading the stylesheet thematic_create_stylesheet(); if (THEMATIC_COMPATIBLE_FEEDLINKS) { // Creating the internal RSS links thematic_show_rss(); // Creating the comments RSS links thematic_show_commentsrss(); } // Creating the pingback adress thematic_show_pingback(); // Enables comment threading thematic_show_commentreply(); // Calling WordPress' header action hook wp_head(); ?> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-13168440-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <?php thematic_body(); // action hook for placing content before opening #wrapper thematic_before(); if (apply_filters('thematic_open_wrapper', true)) { echo '<div id="wrapper" class="hfeed">'; } // action hook for placing content above the theme header thematic_aboveheader(); ?> <div id="header"> <script type="text/javascript"> new function($) { $.fn.placeholder = function(settings) { settings = settings || {}; var key = settings.dataKey || "placeholderValue"; var attr = settings.attr || "placeholder"; var className = settings.className || "placeholder"; var values = settings.values || []; var block = settings.blockSubmit || false; var blank = settings.blankSubmit || false; var submit = settings.onSubmit || false; var value = settings.value || ""; var position = settings.cursor_position || 0; return this.filter(":input").each(function(index) { $.data(this, key, values[index] || $(this).attr(attr)); }).each(function() { if ($.trim($(this).val()) === "") $(this).addClass(className).val($.data(this, key)); }).focus(function() { if ($.trim($(this).val()) === $.data(this, key)) $(this).removeClass(className).val(value) if ($.fn.setCursorPosition) { $(this).setCursorPosition(position); } }).blur(function() { if ($.trim($(this).val()) === value) $(this).addClass(className).val($.data(this, key)); }).each(function(index, elem) { if (block) new function(e) { $(e.form).submit(function() { return $.trim($(e).val()) != $.data(e, key) }); }(elem); else if (blank) new function(e) { $(e.form).submit(function() { if ($.trim($(e).val()) == $.data(e, key)) $(e).removeClass(className).val(""); return true; }); }(elem); else if (submit) new function(e) { $(e.form).submit(submit); }(elem); }); }; }(jQuery); $(inputfield).placeholder(); </script> <?php // action hook creating the theme header thematic_header(); // Call mailchimp signup function $news_message = mailchimp_signup(); if( is_home() ) { ?> <div class="banner_wrapper"> <div class="big_banner_info"> <blockquote><span>“</span>I’ll show you how to become an irresistible communicator with unshakable confidence and super star appeal..<span>”</span><span class="quote">Julie-Anne Black – Creator</span> </blockquote> <div class="banner_content"> <p class="join_us"><b>Are you ready to be an irresistible communicator and produce the life you'll love to live?</b> <b>SIGN UP </b>and get access to your <b>FREE</b> e-video</p> <img src="/images/GoalsMadeEasy"> <p class="changing">“7 Steps to Producing What You Want –Goals Made Easy To Be Brilliant Now”</p> <form name="mailchimp_form" class="join_form" action="" method="post"> <div class="clearfix"> <input type="text" name="fname" value="" placeholder="Your first name" size="20" /> </div> <div class="clearfix"> <input type="text" name="lname" value="" placeholder="Your last name" size="20" /> </div> <div class="clearfix"> <input type="text" name="email" value="" placeholder="Your email address" size="60" /> </div> <button type="submit" name="mailchimp">Join Now</button> <p class="our_promise">Spamming is for people who aren't being brilliant! We absolutely promise to never sell, rent, trade or share your email with anyone or any organisation ever!</p> </form> </div> <a>/jewells-tools/brilliant-tips/" class="seal"></a> </div> <div class="banner_links"> <div> <h3>Mentoring Programs</h3> <p>Re-writing your life script is your fastest way to better performance.When you unleash your confidence, creativity and performance remarkable things happen. </p> <a>/mentoring/">Find out more</a> </div> <div> <h3>On Stage</h3> <p>Internationally renowned. Leading motivational speaker. Unique presentations. Unforgettable messages. Practical success strategies.</p> <a>/onstage/">Find out more</a> </div> <div class="bl_right"> <h3>Mind Mastery with NLP</h3> <p>Seminars in advanced communication using NLP and Body Language. Learn how to master your mind and create spectacular results.</p> <a>/mind-mastery/">Find out more</a> </div> <div class="bl_right"> <h3>Midday Motivator</h3> <p>A dynamic presentation encouraging your team to get engaged, focused and motivated. Delivering new thinking for peak performance.</p> <a>/mind-mastery/midday-motivator/">Find out more</a> </div> </div> </div> <?php } else { ?> <div class="banner_wrapper"> <div class="small_banner_info"> <blockquote><span>“</span>Producing your best life, is much like producing a hit TV show. It’s fast paced, fun, creative and exciting.<span>”</span><span class="quote">Julie-Anne Black – Creator</span> </blockquote> <div class="banner_content"> <p class="join_us">Are you ready to produce the life you'll love to live? <b>SIGN UP for FREE access to</p> <p class="changing">“7 Steps to Producing What You Want –Goals Made Easy To Be Brilliant Now”</p> <form name="mailchimp_form" class="join_form" action="" method="post"> <div class="clearfix"> <input type="text" name="fname" value="" placeholder="Your first name" size="20" /> </div> <div class="clearfix"> <input type="text" name="lname" value="" placeholder="Your last name" size="20" /> </div> <div class="clearfix"> <input type="text" name="email" value="" placeholder="Your email address" size="60" /> </div> <button type="submit" name="mailchimp">Join Now</button> <p class="our_promise">We absolutely promise to never sell, rent, trade or share your email with anyone or any organisation ever!</p> </form> </div> <a>/jewells-tools/brilliant-tips/" class="seal"></a> </div> </div> <?php } ?> </div><!-- #header--> <?php echo ( $news_message != '' ) ? $news_message : ''; // action hook for placing content below the theme header thematic_belowheader(); ?> <div id="main">
[Please use the code buttons when posting code – as is, your code may have been corrupted. Also for this much code you should use a pastebin.]
- The topic ‘How to add an image to a header’ is closed to new replies.