Salve,
stò creando un sito modificando un template per wordpress, ma non ho molta dimestichezza con i css..perciò vorrei sapere se qualcuno può aiutarmi a creare uno spazio sull'header per inserire poi un banner o uno slideshow fotografico e quali sono le tag da usare per mettere poi il suddetto banner o slide![]()
Il template originale è qui: http://www.woothemes.com/2007/11/premiumnews/
e il codice php dell'header è qui sotto.
Spero qualcuno possa aiutarmi!!![]()
GRAZIE IN ANTICIPOCodice PHP:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title>
<?php if ( is_home() ) { ?><?php bloginfo('name'); ?>|<?php bloginfo('description'); ?><?php } ?>
<?php if ( is_search() ) { ?><?php bloginfo('name'); ?>|<?php _e('Search Results',woothemes); ?><?php } ?>
<?php if ( is_author() ) { ?><?php bloginfo('name'); ?>|<?php _e('Author Archives',woothemes); ?><?php } ?>
<?php if ( is_single() ) { ?><?php wp_title(''); ?>|<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_page() ) { ?><?php bloginfo('name'); ?>|<?php wp_title(''); ?><?php } ?>
<?php if ( is_category() ) { ?><?php bloginfo('name'); ?>|<?php _e('Archive',woothemes); ?>|<?php single_cat_title(); ?><?php } ?>
<?php if ( is_month() ) { ?><?php bloginfo('name'); ?>|<?php _e('Archive',woothemes); ?>|<?php the_time('F'); ?><?php } ?>
<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>|<?php _e('Tag Archive',woothemes); ?>|<?php single_tag_title("", true); } } ?>
</title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/jquery-1.3.2.min.js"></script>
<?php wp_head(); ?>
<!--[if lte IE 6]>
<script defer type="text/javascript" src="<?php bloginfo('template_directory'); ?>/images/pngfix.js"></script>
<![endif]-->
<?php include(TEMPLATEPATH . '/includes/stylesheet.php'); ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/jquery.lavalamp.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/tabs.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/superfish.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$(".nav2")
.superfish({
animation : { opacity:"show",height:"show"}
})
.find(">li:has(ul)")
.mouseover(function(){
$("ul", this).bgIframe({opacity:false});
})
.find("a")
.focus(function(){
$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:false});
});
$(".cats-list")
.superfish({
animation : { opacity:"show",height:"show"}
})
.find(">li:has(ul)")
.mouseover(function(){
$("ul", this).bgIframe({opacity:false});
})
.find("a")
.focus(function(){
$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:false});
});
$("#lavaLamp, #2, #3").lavaLamp({
fx: "backout",
speed: 700,
click: function(event, menuItem) {
return true;
}
});
});
</script>
</head>
<body>
<?php
$featuredcat = get_option('woo_featured_category'); // ID of the Featured Category
$GLOBALS[ex_feat] = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name='$featuredcat'");
$vidcat = get_option('woo_video_category'); // ID of the Video Category
$GLOBALS[ex_vid] = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name='$vidcat'");
?>
<div id="page">
<div id="nav">
<div id="nav-left">
<ul id="lavaLamp">
[*][url="<?php echo get_option('home'); ?>/"]Home[/url]
<?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
[/list]
</div>
<div id="nav-right">
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<div id="search">
<input type="text" value="<?php _e('Enter your search keywords here...',woothemes); ?>" onclick="this.value='';" name="s" id="s" />
<input name="" type="image" src="<?php bloginfo('stylesheet_directory'); ?>/styles/<?php echo "$style_path"; ?>/ico-go.gif" value="<?php _e('Go',woothemes); ?>" class="btn" />
</div>
</form>
</div>
</div>
<div id="header">
<h1>[url="<?php echo get_option('home'); ?>/"]">[img]<?php if ( get_option('woo_logo') <> [/img]<?php bloginfo('stylesheet_directory'); ?>/images/logo.gif<?php } ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />[/url]</h1>
<div id="rss">
[url="<?php if ( get_option('woo_feedburner_url') <> "]">[img]<?php bloginfo('stylesheet_directory'); ?>/images/ico-rss.gif[/img][/url]
<ul>
<li class="hl">[url="<?php if ( get_option('woo_feedburner_url') <> "]"><?php _e('SUBSCRIBE TO THE RSS FEED',woothemes); ?>[/url]
[*][url="<?php echo get_option('woo_feedburner_id'); ?>"]<?php _e('SUBSCRIBE TO THE FEED VIA E-MAIL',woothemes); ?>[/url]
[/list]
</div>
</div>
<div id="suckerfish">
<ul class="nav2">
<?php wp_list_categories('title_li=') ?>
[/list]
</div>
<div id="columns">![]()

Rispondi quotando