Home › Forum › Problemi Vari con WP › inserire immagine nell’header
-
AutorePost
-
-
11 Giugno 2010 alle 12:59 #14134telefilmuniversePartecipante
salve a tutti, vorrei inserire un’immagine nell’header del mio sito:
http://tvdguida.altervista.org/
immagine: http://img191.imageshack.us/img191/2428/021rov.jpg
header.php
<?php include (TEMPLATEPATH.’/scripts/loop.php’); ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes();?>>
<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<?php
if(isset($_GET)) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif; ?>
<title>
<?php if ( is_home() ) { ?><?php bloginfo(‘name’); ?> | <?php bloginfo(‘description’); ?><?php } ?>
<?php if ( is_search() ) { ?><?php the_search_query(); ?> | <?php _e(‘Search Results’); ?><?php } ?>
<?php if ( is_author() ) { ?><?php echo $curauth->display_name; ?> | <?php _e(‘Author Archives’); ?><?php } ?>
<?php if ( is_single() || is_page() ) { ?><?php wp_title(”); ?> | <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_category() ) { ?><?php single_cat_title(); ?> | <?php _e(‘Category’); ?> | <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_month() ) { ?><?php the_time(‘F Y’); ?> | <?php _e(‘Archives’); ?> | <?php bloginfo(‘name’); ?><?php } ?>
<?php if (function_exists(‘is_tag’)) { if ( is_tag() ) { ?><?php single_tag_title(“”, true); ?> | Tag <?php _e(‘Archives’); ?> | <?php bloginfo(‘name’); ?>
<?php } } ?>
</title>
<link href=”<?php bloginfo(‘template_directory’); ?>/scripts/960.css” type=”text/css” media=”screen” charset=”utf-8″ rel=”stylesheet” />
<link href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” charset=”utf-8″ rel=”stylesheet” />
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_get_archives(‘type=monthly&format=link’);?>
<?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
<?php wp_head(); ?>
<script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/scripts/yetii-min.js”></script>
<!–[if lt IE 7]> <style type=”text/css” media=”screen”>
body{behavior:url(<?php bloginfo(‘template_directory’); ?>/scripts/csshover.htc)}
} </style><![endif]–>
</head>
<body>
<div id=”header” class=”container_12″>
<div class=”grid_5 prefix_3 suffix_3″>
<?php if (is_home()) { ?>
<?php if ($dark_headerimg) { ?>
<h1>“>
” alt=”<?php bloginfo(‘name’); ?>” /></h1>
<?php } else { ?>
<h1>“><?php bloginfo(‘name’); ?></h1>
<?php } } else { ?>
<?php if ($dark_headerimg) { ?>
<h2>“>
” alt=”<?php bloginfo(‘name’); ?>” /></h2>
<?php } else { ?>
<h2>“><?php bloginfo(‘name’); ?></h2>
<?php } } ?>
</div>
<div class=”grid_12″ id=”nav”>
-
<li <?php if (is_home()) { echo “class=”current_page_item””;} ?> >/” title=”<?php _e(‘Home’); ?>”><?php _e(‘Home’); ?>
<?php wp_list_pages(‘sort_column=ID&depth=3&title_li=’);?>
</div>
</div>
<div class=”clear”></div>
vorrei che l’immagine apparisse sotto il titolo del blog. Come posso fare?
-
11 Giugno 2010 alle 13:16 #74153TeethgrinderPartecipante
nel file style.css
#header {
background:url("images/header.png") no-repeat scroll 0 0 transparent;
float:left;
height:384px;
width:960px;
}
Carica via ftp nella cartella images del tema la tua immagine e modifica il nome header.png nel css.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.