• The sooner the better: You should follow me on twitter here.

144 Comments

  1. Ed invictatrader.com
    Posted January 5, 2010 at 8:29 pm | Permalink

    @Amine you are welcome. The images not showing up could be a database issue if you pull your images from within there.
    Good luck.

    • Posted January 5, 2010 at 9:49 pm | Permalink

      I downloaded another theme (pixel) and I was able to upload the header without any problems….:) Not sure why the thematic child theme wont let me…

  2. Posted January 6, 2010 at 6:06 pm | Permalink

    dammmm it. my buddy from canada just figured it out for me and its something very stupid…lol

    this is his message:

    ou’re working with a linux web server for your site, so the file names are CASE sensitive, i.e. LOGO2.jpg and logo2.jpg are not same.

    Either you can rename the file to match what it is being called or change the way it is being called.

    . if you go to any page on your site and right click, IE or firefox will give you this menu item ‘view source’. Once you select that it’ll bring up a page in html, here you can search for that file ‘logo2.jpg’ and you can get more details.

    thanks for everyone for trying. its truly appreciated and thanks for the thematic and child theme. its truly appreciated. as someone famous said. there is no such thing as genius, its all about persistence……:)

  3. Ed invictatrader.com
    Posted January 6, 2010 at 7:14 pm | Permalink

    @Amine on a Linux server you have to be careful naming files. Always best to use all lower case alphabets or numbers, nothing else.

  4. Ed invictatrader.com
    Posted January 6, 2010 at 7:15 pm | Permalink

    Good Luck with your project @Amine. Is your site working now?

    • Posted January 6, 2010 at 7:16 pm | Permalink

      yes, its awesome

      http://www.isearchBankhomes.com

      i still have lots of work to do to finish it up…:)

      • Ed invictatrader.com
        Posted January 7, 2010 at 10:06 pm | Permalink

        Very well done site @Amine. What images were you talking about. All image links are working fine.

        • Posted January 7, 2010 at 11:21 pm | Permalink

          @ed thanks for the compliment. Feel free to give any feedback on my website. It was the Banner that wouldn’t show up because of the case senstivie issue….got it working finally…:)

  5. Ed invictatrader.com
    Posted January 8, 2010 at 10:35 pm | Permalink

    I am glad it all worked out for you in the end. Persistence pays off big time.

  6. Posted January 9, 2010 at 12:45 am | Permalink

    Any guidance on what size the banner image should be?

    • Ed invictatrader.com
      Posted January 11, 2010 at 7:38 pm | Permalink

      Just look for the size of the banner in the HTML and make sure the image size is the same or lesser than it.

  7. Posted January 11, 2010 at 10:54 pm | Permalink

    Does it matter if you stick this PHP code at the bottom of your functions.php in Thematic? Or does it need to be somewhere specific?

    Thanks so much,
    k.n.

    • Cristian cozmoslabs.com
      Posted January 11, 2010 at 11:05 pm | Permalink

      This is thought to be uses inside the functions.php file of a child theme. This way you won’t make any modifications to Thematic and future updates to the framework will be really simple to do.

    • Ed invictatrader.com
      Posted January 12, 2010 at 7:32 pm | Permalink

      @Kyndra that should be fine.

  8. Marc thereddwarfinn.com
    Posted January 15, 2010 at 9:33 pm | Permalink

    Hi, I added the code to my child theme and uploaded a test image and it went up without a problem. I then switched it out with the same image (but with text added), and it now shows this:

    Warning: fopen(/tmp/php2jY71f) [function.fopen]: failed to open stream: Success in /home/reddwarf/public_html/wp-content/themes/thematic/functions.php on line 113

    Warning: fclose(): supplied argument is not a valid stream resource in /home/reddwarf/public_html/wp-content/themes/thematic/functions.php on line 115

    and the header is no longer appearing. Please forgive me if the answer is obvious, I’m clueless with this stuff.

    • Marc thereddwarfinn.com
      Posted January 15, 2010 at 9:43 pm | Permalink

      just as an addition – the original test banner still works. What am I doing wrong with the new image? It’s the same file size, width and height, file type, etc.

  9. Ed invictatrader.com
    Posted January 15, 2010 at 10:11 pm | Permalink

    The text on the image looks to be the issue here. Does it work well without the text? Have you tried to overlay the text over the image or is the text part of the image itself?

    • Marc thereddwarfinn.com
      Posted January 18, 2010 at 1:12 am | Permalink

      I overlayed the text on the image via photoshop. The original image still works, but no other image seems to work, with or without text.

      I’m going to keep fiddling to see if I can discover what makes this image different from the others… any suggestions? You may want to try sending me an image that works for you to see if it works for me as well.

      Is it possible I added the code incorrectly and that’s the source of these inconsistencies?

  10. Ed invictatrader.com
    Posted January 18, 2010 at 8:26 pm | Permalink

    Have you tried to superimpose your text on your image in Photoshop and save it to your desktop? Then go ahead and upload it to your theme’s folder? I have done that at times to make text over images work.

  11. John G johngosselin.com
    Posted February 1, 2010 at 4:48 pm | Permalink

    I added the code to my functions.php in my child theme and now I am getting this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/hypr/public_html/blog/wp-content/themes/johng/functions.php:104) in /home/hypr/public_html/blog/wp-includes/pluggable.php on line 868

    Not sure what I need to do to fix this. Any thoughts?

    • Cristian cozmoslabs.com
      Posted February 1, 2010 at 10:33 pm | Permalink

      This probably means you have spaces after the last php closing tag in functions.php.

      Check for that and let me know if it fixed it!

      • John G johngosselin.com
        Posted February 2, 2010 at 3:01 am | Permalink

        Yeah, I think it was just a syntax error. I re-pasted the code along with some of my other functions and everything started working just fine. Thanks very much for the input!

        • Ed invictatrader.com
          Posted February 2, 2010 at 7:41 pm | Permalink

          Am glad it worked out for you. Nice place to ask questions here.

  12. Ed invictatrader.com
    Posted February 1, 2010 at 10:00 pm | Permalink

    Could be a syntax error. I would check for mistakes there first.

  13. Ed invictatrader.com
    Posted February 12, 2010 at 9:29 pm | Permalink

    @Brenda what server are you on?

  14. Jon jonautry.com
    Posted March 15, 2010 at 5:30 am | Permalink

    I’m using Buddymatic with the basic Buddymatic child theme. I thought I’d give this a shot.

    I was really encouraged when, after pasting the above code into my theme’s function.php, I got the options page on my backend and it appeared to work flawlessly. That is, it let me upload my custom image and it appeared on the option page. Except that it didn’t actually change my site.

    I’m thinking maybe that there’s something simple that needs to be changed to make this work. Any ideas?

    • Jon jonautry.com
      Posted March 15, 2010 at 5:53 am | Permalink

      Nevermind! Got it going!!! I was pasting it into my functions.php incorrectly!

      Beautiful! Thanks!

  15. Ed invictatrader.com
    Posted March 15, 2010 at 9:42 pm | Permalink

    Be careful about how and where you enter code in the functions.php file.

  16. BM
    Posted April 3, 2010 at 1:15 am | Permalink

    Would it be possible to have rotating header images? Like for instance having a folder of header images, one of which is randomly chosen every time the page is loaded?

    Thanks

  17. Ed invictatrader.com
    Posted April 3, 2010 at 7:57 pm | Permalink

    You might need to do some custom coding to the CSS in order to achieve that @BM.

  18. kunstGRIFF kunstgriff-pix.org
    Posted June 3, 2010 at 7:36 am | Permalink

    prior to the commencement, let me say THX for this! I’ve implemented the code in my Thematic child’s functions.php. It works fiine and lets me change the header image and fade out blog’s title and description.

    Just one problem:

    Warning: fopen(/tmp/php2jY71f) [function.fopen]: failed to open stream: Success in /home/reddwarf/public_html/wp-content/themes/thematic/functions.php on line 113

    Warning: fclose(): supplied argument is not a valid stream resource in /home/reddwarf/public_html/wp-content/themes/thematic/functions.php on line 115

    I’ve checked the code several times: no unwary spaces, nothing that a. explains the error message or b. explains why everything’s working fine although I receive that message. Any idea?

    • Cristian cozmoslabs.com
      Posted June 3, 2010 at 8:28 am | Permalink

      Those are warnings and not error messages. Your server should have not displayed those… I think…

  19. Ed invictatrader.com
    Posted June 3, 2010 at 4:32 pm | Permalink

    Looks like a parsing error encountered by your server. Did you check the line it says the error was on?

    • kunstGRIFF kunstgriff-pix.org
      Posted June 3, 2010 at 5:39 pm | Permalink

      Here’s the exact message:

      Warning: fopen(/tmp/phpbnhsuA) [function.fopen]: failed to open stream: Success in /home/web160/klem08/ftproot/www.kunstgriff-pix.org/wordpress/wp-content/themes/simply_sankt_pauli/functions.php on line 50

      Warning: fclose(): supplied argument is not a valid stream resource in /home/web160/klem08/ftproot/www.kunstgriff-pix.org/wordpress/wp-content/themes/simply_sankt_pauli/functions.php on line 52

      Your code starts @ line 28. There’s some code for a home link in the menu and a custom footer in those first lines.

      • kunstGRIFF kunstgriff-pix.org
        Posted June 3, 2010 at 6:03 pm | Permalink

        After having removed the first lines (just this code is left) it says line 24 and 26.

  20. Ed invictatrader.com
    Posted June 3, 2010 at 8:41 pm | Permalink

    Looks like an opening and closing script error there. Need to see the entire code to figure it out.

  21. Ana
    Posted June 5, 2010 at 3:45 am | Permalink

    Awesome thank you!

  22. Jess jesshedrick.com
    Posted June 13, 2010 at 6:53 pm | Permalink

    Help. I am very new to wordpress customization. I have successfully installed a child theme of thematic but am running into difficulty when adding this php code to functions.php. I save it and it says “file updated successfully” but then I don’t have a child theme options tab underneath appearances. Does the latest version of thematic support this, or am I missing a crucial step. It is for this site http://www.tybeenorthbeachrentals.com

    any and all feedback is greatly appreciated!
    Thanks!

    • Jess jesshedrick.com
      Posted June 13, 2010 at 7:42 pm | Permalink

      I edited functions.php outside of wordpress and uploaded it via ftp. This solved the problem! Thanks for the great code!!

  23. Ed invictatrader.com
    Posted June 14, 2010 at 7:32 pm | Permalink

    You should be able to edit it on server backend also. No need for FTP to do something like that.

  24. Posted June 22, 2010 at 5:18 am | Permalink

    what is your opinion on how the loss of the header tags might affect SEO?

    i’ve been trying to tweak this so that you can have the image and the headers. it is easy to tweak the code such that the image is the background image for the h1 tag and text-indent away the link, but i find this only works when i know the specific dimensions, in which case why do i need an options panel.

    except that i want the options panel if i am developing a theme for public consumption… and i like to use timthumb so that i can keep a lid on the max size of the logo image.

    def havent figured this one out yet, but it is a great addition to an options panel!

    • Ed invictatrader.com
      Posted June 22, 2010 at 7:08 pm | Permalink

      You can have text links over the image. Use style.css to add it on.

  25. Ed invictatrader.com
    Posted June 25, 2010 at 3:35 pm | Permalink

    Have to some more testing with WP 3.0 to make sure it is compatible.

  26. Felton feltonbrown.com
    Posted July 1, 2010 at 7:30 pm | Permalink

    So I added the code and the admin section came up. When I tried to upload an image I got this message:

    “Warning: fopen(/tmp/php4zGvst) [function.fopen]: failed to open stream: Success in /home/content/88/6358288/html/wp-content/themes/thematic/functions.php on line 119

    Warning: fclose(): supplied argument is not a valid stream resource in /home/content/88/6358288/html/wp-content/themes/thematic/functions.php on line 121

    • Ed invictatrader.com
      Posted July 1, 2010 at 7:32 pm | Permalink

      Looks like a scripting error. Check the code.

      • Felton feltonbrown.com
        Posted July 1, 2010 at 7:41 pm | Permalink

        Anything specific I should be looking for. Is it something in the function.php file or somewhere else?

        • Ed invictatrader.com
          Posted July 2, 2010 at 5:15 pm | Permalink

          Try checking it at php.net to start off. Who is your host?

    • Cristian cozmoslabs.com
      Posted July 2, 2010 at 10:51 am | Permalink

      Hey Felton.

      That error appears on certain hosts and to be honest I haven’t figured it out so far. Some php configurations work without any issues while others don’t.

      Try and have a look at this:
      http://webcache.googleusercontent.com/search?q=cache:l92Jmg-abbcJ:php.net/manual/en/function.fopen.php+Warning:+fopen%28/tmp/phpbnhsuA%29+function.fopen:+failed+to+open+stream:&cd=3&hl=en&ct=clnk&client=firefox-a

      It’s the fopen function over at php.net. Maybe it can help you.

      • abb alidabarden.com
        Posted July 20, 2010 at 5:15 am | Permalink

        After attempting to upload my image I’m getting a similar message. Errors are on different lines though:

        Warning: fopen(/tmp/phprpILcL) [function.fopen]: failed to open stream: Success in /home/alidabar/public_html/wp-content/themes/thematics-child/functions.php on line 24

        Warning: fclose(): supplied argument is not a valid stream resource in /home/alidabar/public_html/wp-content/themes/thematics-child/functions.php on line 26

        Concerning the first line, line 24, the copy & paste code uses the ‘rb’ mode as follows:

        $fd = fopen($temp_file,’rb’);

        line 26 looks like this:

        fclose($fd);

        Chris, I read the PHP manual you linked to and it looks like it might be a server issue but my other concern is that it might be a operating system issue? I am working on a Mac. Could it be this simple/dumb?

        I’ll try editing it in plain text (which is what I did originally-so I’ve tried copy and pasting in both plain text and my code editor) on my PC and report back. I’m wondering if the type is getting mixed up in the cutting and pasting, depending on what editor I’m using vs. what the original code was written in. Oh the little details!

        Keep me updated if anyone figures it out or has any other suggestions. Thanks!

        • abb alidabarden.com
          Posted July 20, 2010 at 5:21 am | Permalink

          PS. I’m also going to mess around with the modes and try ‘t’ vs. ‘b’ etc. as apposed to ‘rb’. Somebody let me know if I’m way off in left field on this one, please!

        • Cristian cozmoslabs.com
          Posted July 20, 2010 at 9:14 am | Permalink

          To be honest I never tested this in a Mac. File permissions could be different. I never tested this on a Windows server. Only on Linux.

          I’ll need to have a look at this code since it appears to be causing people issues sometime in the near future. Maybe I can come with another solution.

  27. Posted July 8, 2010 at 4:13 pm | Permalink

    Hi Cristian, I’ve added the child theme, and the header image, however now the title shows up in the left under the menu. How can I hide it ?
    (if I dont use a title than it doesnt show up but there will be no title in the window browser)

    • Ed invictatrader.com
      Posted July 8, 2010 at 6:22 pm | Permalink

      You might have to edit your css file to move the title around.

    • Cristian cozmoslabs.com
      Posted July 9, 2010 at 10:11 am | Permalink

      Hi!
      Can you provide a link to your site?

4 Trackbacks

  1. [...] Add a Header Image to Thematic the Easy Way [...]

  2. [...] Add a header image to Thematic – the easy way (tags: wordpress tutorial) [...]

  3. By Back to the roots of clear WordPress design on June 2, 2010 at 4:59 pm

    [...] zupass kam, es um einen anpassbaren Kopf (neudeutsch: custom header) ergänzt, zu dem ich mich hier habe inspirieren [...]

  4. [...] Add a Header Image to Thematic the Easy Way [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Featured Theme

    Smarter Wordpress Theme

    Smarter is a Wordpress theme for small and medium sized companies. It's meant to build a presentation site in a minimum amount of time without touching a single line of code.

  • subscribe

    through RSS

    Or, subscribe via email:

    Enter your email address:

    Follow me on Twitter