Please help or any suggestions on the code
I would love that!
thank you,
Jeanette
I used Kubrickr to find an image. Now I am unsure how to make this file, which I uploaded to my site, into my header image. You can see where I changed the link under $img =
This is what header-img php looks like:
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*//** @ignore */
$img = ‘https://gays4palin.com/blog/wp-content/uploads/2009/08/kubrickheader-6.jpg’;// If we don’t have image processing support, redirect.
if ( ! function_exists(‘imagecreatefromjpeg’) )
die(header(“Location: kubrickheader.jpg”));
The header.php reads as follows:
]]><?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” <?php language_attributes(); ?>><head profile=”https://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /><title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” /><style type=”text/css” media=”screen”>
<?php
// Checks to see whether it needs a sidebar or not
if ( empty($withcomments) && !is_single() ) {
?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
<?php } ?></style>
<?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id=”page”><div id=”header” role=”banner”>
<div id=”headerimg”>
<h1>/”><?php bloginfo(‘name’); ?></h1>
<div class=”description”><?php bloginfo(‘description’); ?></div>
</div>
</div>
<hr />
// Custom Header
define('HEADER_TEXTCOLOR', 'B5C09D');
define('HEADER_IMAGE', '%s/images/header-pascal.jpg'); // %s is theme dir uri
define('HEADER_IMAGE_WIDTH', 1161);
define('HEADER_IMAGE_HEIGHT', 350);
define('HEADER_PADDING_TOP', 20);
//define( 'NO_HEADER_TEXT', true );
function header_style() {
?>
<style type="text/css">
#headimg{
background:#fff url(<?php header_image() ?>) no-repeat bottom;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
display: none;
}
<?php } else { ?>
#headimg h1 a, #desc {
color:#<?php header_textcolor() ?>;
}
<?php } ?>
</style>
<?php
}
function crev_admin_header_style() {
?>
<style type="text/css">
#headimg{
background:#fff url(<?php header_image() ?>) no-repeat bottom;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width:<?php echo HEADER_IMAGE_WIDTH; ?>px;
padding:0;
}
#headimg h1{
margin: 0;
font-size: 1.6em;
padding:10px 20px 0 0;
text-align:right;
}
#headimg h1 a{
color:#<?php header_textcolor() ?>;
text-decoration:none;
}
#headimg #desc{
color:#<?php header_textcolor() ?>;
font-size: 1.4em; /*1.2em*/
text-align: left;
margin-left: 60px;
margin-top: -15px;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
display: none;
text-decoration:none;
}
#headimg h1 a, #headimg #desc {
color:#<?php echo HEADER_TEXTCOLOR ?>;
}
<?php } ?>
</style>
<?php
}
add_custom_image_header('header_style', 'crev_admin_header_style');
?>
]]>-changing the banner to WordPress Default, based on Kubrick. Then I went to redalt and tried to use the Kubrickr tool. I uploaded the banner gif to Flickr, set the Creative Commons license, added tags. I did all this yesterday. Today when I try to search tags using the Kubrickr, my banner gif simply does not appear. And yet it is sitting on Flickr.
-I added the gif banner to my website, jjsciencezap.com, so it would be there.
-I’ve been reading the forums and the codex recommended to other ppl. I am not at all familiar with coding or any of this stuff, but amazingly I did figure out how to view the code. I put “ftp” before the site name which is probably obvious to all of you but to me that was an achievement. So I viewed the header.php file, which was empty except for > and then I looked at the styles.css file and found code, including what I think is the file name of the header. only I cannot actually get in and edit. And yah, I’m signed in – I was asked for my user name and pswd.
Please know that I have spent hours reading posts and codex b/4 adding this topic – I know I am at a very basic level and didn’t want to bother ppl – but I am totally at a loss. Please help!!
Thanks!!
Jennifer
Thanks.
]]>What must I do to get my photo into the header?
Thank you.
]]>Can anyone help me with this fairly obvious and probably somewhat dopey issue?
Thanks,
Tom
]]>