• Resolved purpleinnej

    (@purpleinnej)


    I’m sure this question is very easy, but after searching the Documentation and Forums, I still can’t figure it out. I’m using the theme Wappos, which has a built-in tool for uploading and cropping your own image to use as the header. I’ve tried many times, to no avail, uploading my own image (a .jpg). It acts like it uploads but when it should go to “step 2” where you select the area to crop, I get a totally blank white screen. That’s another problem altogether that I’m trying to solve, but it explains why I’m going about this trying to edit the header.php myself instead of using that tool. I’ve used an FTP to put “header.jpg” in the images folder of the theme. The problem is figuring out which part of header.php I need to change to be url(‘images/header.jpg’). Also, while I’m at it, I’d like to change the dimensions. Is there any way to tell it to just use the full image rather than having pre-set heights and widths?

    [large amount of code moderated as per forum rules – please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi purpleinnej,

    Sorry no answer for you but just some moral support – I’m having the same trouble getting a decent sized header into Wappos. I’ll let you know if I work something out before you, likewise please if you do.

    Cheers

    Hi purpleinnej,

    I worked out the size thing – it is in Theme Functions (functions.php).
    The bit of interest is:

    define(‘HEADER_IMAGE’, ‘%s/images/default_logo.png’);
    define(‘HEADER_IMAGE_WIDTH’, 950);
    define(‘HEADER_IMAGE_HEIGHT’, 90);
    define(‘HEADER_TEXTCOLOR’, ‘555’);
    define( ‘NO_HEADER_TEXT’, true );

    The 950 was 160 as standard.

    Hope that helps,

    Chris

    Thread Starter purpleinnej

    (@purpleinnej)

    So, I got my own header in there. Not sure what code was there before, but in my header.php I have this bit:

    <div id="header">
    	<div id="logo">
    		<?php
    			$h_img = get_header_image();
    			if($h_img) {
    		?>
    		<a href="<?php echo home_url(); ?>"><img src=http://www.memoryboxhut.com/wp-content/themes/wappos/images/header.jpg alt="Memory Box Hut" /></a>
    		<?php } else { ?>
    		<div id="sitename"><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></div>
    		<?php } ?>
    	</div><!--// logo -->
    
    	</div>
    
    </div><!--// header -->

    I made my header in powerpoint, saved as a .jpg. Then I used Resize! (http://www.kstudio.net/re.html) to adjust it until I got it the size I wanted before uploading via FTP. Took a few trials and errors to get it perfect, but now I like it. Had to totally ignore the built-in tool with Wappos to do it, though. Check out the site if you’d like to see the finished product: http://www.memoryboxhut.com

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing header image and dimenstions’ is closed to new replies.