• I have just set up my WordPress blog and don’t wish for much more template customizing now except putting a logo image inside the kubrick theme header gradient (leaving the logo with the gradient in background). I am not familiar with the WP template structure and any leads into this will be a good push for a better understanding of WP customization. Thanks in advance!

    Dave

Viewing 15 replies - 1 through 15 (of 41 total)
  • Much info here: https://codex.www.ads-software.com/Theme_Development. (side note: I found the default theme to be a pain to modify…)

    Thread Starter davidhopkins

    (@davidhopkins)

    Hey thanks for the response HandySolo, I have been studying the theme section but can’t figure where I need to insert the image in the WP template – just trying to make my blog header look as my tiddlywiki page at https://udigrudi.net. Anyway, my custmizing ambitions at the moment don’t go much further than using a logo inside the kubrick header ??
    Any other leads are warmly welcome by this WP newcommer.

    Short term, have a look at your theme’s header.php and maybe just merge your logo onto the header graphic loaded there?

    Some as far as I know, most just use Gimp or Photoshop, & make up their own image, which will fit nicely within the blue gradient part of it.

    But have their image with a transparent background to it, then use the “personal header” image option, which could overlay it… I think.. =/

    spencerp

    Thread Starter davidhopkins

    (@davidhopkins)

    Thanks again HandySolo, I guess you mean I should merge the kubrick header image with my logo image – so I’ll try that out. I thought there would be like a place in the WP code where I could simply insert an image url instead of ‘My Blog’. But I guess I should do just as you suggest and get hands on the image editor (gimp in my case, and fuse both images) – appreciate the advice again Handy =D

    HandySolo, can you tell me why the default theme is a pain to modify? I’m also trying to insert a new header image on my default theme, and its giving me the most massive headache!

    Thread Starter davidhopkins

    (@davidhopkins)

    Sure spencerp, I’ll try that with udigrudi.net/blog (it’s red).

    This where Spencer or Vkaryl could pipe up… I personally just found it a bit “illogical” on where to look for style info. Some is inline — some images are defined in source too — while other stuff is in the CSS.

    But really, what it comes down to, is it is by far the theme that generates the most questions and confusion here in the Support forums. By far!

    Not that I’m saying it is a piece of crap. I actually rather like it, conceptually (click on my name for my blog and you’ll see…). I’m using a “customized derivative” of the Kubrick theme.

    This where Spencer or Vkaryl could pipe up… I personally just found it a bit “illogical” on where to look for style info. Some is inline — some images are defined in source too — while other stuff is in the CSS.

    But really, what it comes down to, is it is by far the theme that generates the most questions and confusion here in the Support forums. By far!

    Yeah, that’s why most of us try and tell them NOT to use it, but some of “those” in the past, didn’t want to give that theme up, so there was no choice but to help them with it lol.

    But, as for the “personal header” image option, there is this line of code in the header.php file, change this:
    /*
    #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.jpg') no-repeat top;}
    */

    To this, to uncomment it out:

    #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.jpg') no-repeat top;}

    In Gimp, make an image that you know, will fit into that gradient section of your header..name it personalheader.jpg and upload him into the images or img folder to overwrite the existing one, if there is one.

    spencerp

    I’ll try and show ya an example on my test blog once..

    That option is also noted in the header.php file about the personalheader.jpg

    /* To ease the insertion of a personal header image, I have done it in such a way,
    that you simply drop in an image called 'personalheader.jpg' into your /images/
    directory. Dimensions should be at least 760px x 200px. Anything above that will
    get cropped off of the image. */
    /*

    Thread Starter davidhopkins

    (@davidhopkins)

    That sounds great spencerp. Trying it out over here in a xampp sandbox. Thanks! ??

    Thread Starter davidhopkins

    (@davidhopkins)

    Sorry spencerp, tried it out but nothing seems to change here, maybe because my personalheader image is a .png? The gradient is red too. Trying the gimp merge now…

    Ok, with me trying to make the image work, as a jpg image, for transparent background, failed! It automatically made it a white background..

    Now, I’m using a transparent background as the: personalheader.gif image, with the width of: 750px and 190px high..

    Using this code:
    #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.gif') no-repeat top;}

    Note: I just changed the .jpg to .gif..
    https://www.vindictivebastard.net/kubrickfixed/

    personalheader.gif preview

    PLEASE NOTE: Also, that I didn’t use up the whole actual available width and height of it, I just did it this way for an example only lol.. You of course can make your own stuff up.. =D

    spencerp

    P.S. Yes, that WAS my car before, $4,200.00 and was going to put an EVO 5 body kit on it, but wrecked it, rolled it twice while drunk..bye bye car..

    Thread Starter davidhopkins

    (@davidhopkins)

    Thx for all the help guys. I tried the image merge with the kubrickheader.jpg image but (weird) after I replace with the changed file it still remains the same, no apparent change to the header. See at https://www.udigrudi.net/blog/. Probably I am missing something, guess I am a WP lamer =)
    Sorry for the car dude!

    Ok, David, just use your header image like on the second thread/post you have there, open it up, copy it and then save that new one as a “.gif” image. Like: personalheader.gif

    Upload that into your wp-content/themes/default/images/ folder.

    Using this code in the header.php file then (Basically removing that original code like that):

    #headerimg { background: url('<?php bloginfo('stylesheet_directory'); ?>/images/personalheader.gif') no-repeat top;}

    WITHOUT the front /* and end */ above and below it..then save that header.php file, within your Presentation => Themes = Theme Editor

    I hope that helps.. =)

    spencerp

    Yeah, I know..I’m still kicking self for it sigh.. =(

    and hey – when in doubt, ctrl-F5 to force the browser to reload…

Viewing 15 replies - 1 through 15 (of 41 total)
  • The topic ‘Insert image in header?’ is closed to new replies.