Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

adalton colombo

problema com header

Recommended Posts

ola pessoal tudo beleza

estou criando um tema aqui e estou com um pequeno problema

quando vou passar o arquivo index.html para o php

da erro

tipo tem os aquivos index.php header.php footer.php

quando inciro no header.php os codigos e no index.php

coloco a chamada

<?php get_header ();?>

no internet explorer os backgrouds que tem o atribudo hover

nao aparece, eu falo que issu porque quando coloco os codigos divolta no aquivo index.php fica normal

mas tem um porem em outros temas passados fiz a mesma coisa que estou a fazer neste

e nao deu este erro

 

oque pode ser;

Compartilhar este post


Link para o post
Compartilhar em outros sites

eu utilizei o Dreamweaver

estou usando o cms wordpress

o codigo fico assim

header.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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
<link rel="stylesheet" href="<?php bloginfo('template_url')?>/style.css" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400italic' rel='stylesheet' type='text/css'>
<script language="javascript" src="<?php bloginfo('template_url')?>/slide-show/scripts/jquery.js"></script>
<script language="javascript" src="<?php bloginfo('template_url')?>/slide-show/scripts/jcycle.js"></script>
<script language="javascript" src="<?php bloginfo('template_url')?>/slide-show/scripts/fotos.js"></script>
<link rel="stylesheet" href="<?php bloginfo('template_url')?>/slide-show/estilo.css" type="text/css" />
<!--------TABS-------->
<link type="text/css" href="<?php bloginfo('template_url')?>/js/css/smoothness/jquery-ui-1.8.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="<?php bloginfo('template_url')?>/js/lib/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url')?>/js/tabs.js"></script>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_head(); wp_footer(); ?>
</head>

<body>
<div id="container">
 <div id="topo">
   <div id="banner-top">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Banner top') ) : ?><?php endif; ?>
   </div><!--banner_top-->
   <div id="menu">
     <ul>
       <li><a href="#"></a></li>
       <li><a href="#"></a></li>
       <li><a href="#"></a></li>
       <li><a href="#"></a></li>
     </ul>
   </div><!--MENU-->
 </div><!--TOPO-->

Compartilhar este post


Link para o post
Compartilhar em outros sites

osso cara

nao sei oque deu

mas so pra faser um teste

paquei um outro projeto aqui

e so copiei este que esta dando erro

e colei neste outro

e deu certo nao mudei nada

so peguei e colei

estranho ne

 

agora deu outro problema

no internet explorere quando clico em algum post para ver o conteudo todo

chama o arquivo single.php serto;

so que acontece algo que nao intendi ele da uma bagunçada mas nos outros arquivo tipo page category fica serto

so no single.php ta estranho;

o ingracado e que se eu colocar um unico single.php da certo mas se tiver mais de uma ta este problema

olha so o codigo single

<?php
 $post = $wp_query->post;
 if ( in_category('noticias') ) {
      include(TEMPLATEPATH . '/single-noticias.php');
  } elseif  ( in_category('eventos') ){
      include(TEMPLATEPATH . '/single-eventos.php');
  } else {
      include(TEMPLATEPATH . '/single-default.php');
  }
?>

 

 

ja pesquisei e me parece estar certo

nos outros navegadores ta tudo certo

mas no internet explorer quando clico para ver um post completo

ja da este erro

Compartilhar este post


Link para o post
Compartilhar em outros sites

nao deu certo nao

 

achei este codigo que pode substitur este ai

mas nao to sabendo usa-lo

<?php

$category = get_the_category();

if (in_category($category[0]->slug) ) {
 echo 'single-'.$category[0]->slug.'.php'; //exemplo para ver se funciona

 $template = 'single-'.$category[0]->slug; //define o nome do arquivo a ser usado toda vez
 get_template_part($template,'single'); //chama o arquivo
}

?>

 

tope me ajudar?

 

obrigado

Compartilhar este post


Link para o post
Compartilhar em outros sites

o css e este

@charset "utf-8";
/* CSS Document */
/*
Theme Name: Paróquia
Theme URI: http://www.
Description: Portal
Author: Adaltonwebs
Author URI: http://www.
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, .contentpaneopen, .contentheading {
   margin: 0;
   padding: 0;
   border: 0;
   outline: 0;
   font-size: 100%;
   outline:none;
list-style:none;
text-decoration:none;
   line-height:normal;
   vertical-align:top;
font-family: 'Archivo Narrow', sans-serif;
}
html{ background: url(images/fundo2.jpg) repeat-x  fixed;}
#container{ margin:auto; width:990px; height:auto;}
#topo{ float:left; width:990px; height:auto;}
#banner-top{ float:left; width:990px; height:240px; background:#033;}
/*********************
     MENU
************************/
#menu{ float:left; width:990px; height:40px; margin-top:14px;}
#menu ul{ width:990px; height:35px; margin:2px 0 0 0;}
#menu ul li{ display:inline; float:left; font-size:16px; height:27px; padding:8px 8px 0 8px;}
#menu ul li:hover{ background:#036; -moz-border-radius:9px; -webkit-border-radius:9px;                   border-radius:9px; cursor:pointer;}
#menu a{ color:#330;}
#menu a:hover{ color:#FFF;}
/********************/
#conteudo-geral{ float:left; width:990px; height:auto;}
#primeiro-bloco{ float:left; width:990px; height:auto; margin:15px 0 20px 0;}
#box-slide{ float:left; width:620px; height:465px; background:#C6C6FF; -moz-border-radius:9px;            -webkit-border-radius:9px; border-radius:9px;}
#box-slide h2{ font-size:17px; margin:10px 0 10px 15px;}
#box-slide h5{ font-size:14px; text-align:center; margin-left:180px; padding-top:1px; height:18px; width:90px; background:#333; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}
#box-slide h5 a{ color:#FFF;}
#box-slide h3{ font-size:10px; font-weight:normal; padding:5px 0 0 0;}
#box-slide p{ font-size:13px; padding:0 4px 0 0;}
#box-slide a{ color:#333;}
#box-slide a:hover{ text-decoration:underline;}
/**************/
#slide{ float:left; width:315px; height:auto;}
#noticias-sec{ float:left; width:305px; height:auto; margin:0 0 0 5px;}
#noticias-sec ul li{ display:block; height:80px; margin:7px 0 0 0;}
#noticias-sec img{ float:left; border:2px solid #333; margin:5px 3px 0 0;}
#noticias-sec img:hover{ border:2px solid #CCC;}
/*************************/
#noticias-lat{ float:left; width:300px; height:auto;}
#noticias-lat ul li{ display:block; height:80px;}
#noticias-lat img{ float:left; border:2px solid #333; margin:5px 3px 0 0;}
#noticias-lat img:hover{ border:2px solid #CCC;}
/**********************/
#liturgia{ float:left; width:360px; height:465px; margin:0 0 0 5px; overflow:auto; 
            background:#CEF1B4; -moz-border-radius:9px; -webkit-border-radius:9px;             border-radius:9px;}
#liturgia h2{ font-size:17px; margin:10px 0 10px 0; text-align:center; color:#033;}
#liturgia h3{ font-size:15px; padding:0 8px 5px 8px;}
#liturgia p{ font-size:14px; padding:0 8px 5px 8px; text-align:justify;}
/************************
   SEGUNDO BLOCO
**************************/
#segundo-bloco{ float:left; width:990px; height:auto; margin:0 0 20px 0;}
#celebracoes{ float:left; width:350px; height:300px; background:#CCC; -moz-border-radius:9px;              -webkit-border-radius:9px; border-radius:9px;}
#celebracoes h2{ font-size:17px; margin:10px 0 10px 0; text-align:center; color:#00F;}
#celebracoes h3, h4, h5{ font-size:15px; padding:0 8px 3px 8px; text-align:center; color:#036;}
#celebracoes p{ font-size:14px; padding:0 8px 0 8px; color:#036;}
/********************************/
#box-agenda{ float:left; width:330px; height:300px; margin:0 0 0 10px; background:#C9FBC6;            -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px; overflow:auto;}
#box-agenda h2{ font-size:17px; margin:10px 0 10px 0; text-align:center; color:#960;}
#box-agenda h3, h4, h5{ font-size:15px; padding:0 8px 0 8px;}
#box-agenda p{ font-size:14px; padding:0 8px 5px 8px; border-bottom:1px dotted #666; 
              margin:0 0 13px 0;}
/*************************/
#link{ float:left; width:275px; height:300px; margin:0 0 0 10px; padding:0 5px 0 5px; background:#CCF;             -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px;}
#link h2{ font-size:17px; margin:10px 0 10px 0; text-align:center; color:#960;}
#link p{ text-align:center;}
#link a{ color:#330;}
#link a:hover{ color:#990;}
/****************************
    TERCEIRO BLOCO
****************************/
#terceiro-bloco{ float:left; width:990px; height:auto;}
#box-banner{ float:left; width:320px; height:120px; margin:0 6px 0 4px;}
.banner-trip img{ float:left;-moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px;}
/***************************/
#galeria{ float:left; width:990px; height:auto; margin:0 0 10px 0;}
#galeria img{ border:3px solid #666; -moz-border-radius:9px; -webkit-border-radius:9px;               border-radius:9px; margin:0 0 0 12px;}
#galeria img:hover{ border:3px solid #036;}
#galeria ul li{ display:inline; float:left; width:240px; height:250px; margin:0 0 0 5px;}
#galeria p{ font-size:14px; text-align:center; padding:0 4px 0 4px; color:#000;}
#galeria h3{ font-size:16px; width:130px; height:25px; padding:4px 0 0 0; text-align:center;              margin:10px 0 10px 30px; border:1px dotted #033; -moz-border-radius:5px;                     -webkit-border-radius:5px; border-radius:5px;}
#galeria h3:hover{ background:#009; cursor:pointer;}
#galeria a{color:#900;}
#galeria a:hover{color:#FFF;}
/*********************
     QUARTO BLOCO
**********************/
#quarto-bloco{ float:left; width:990px; height:auto; margin:0 0 10px 0;}
#tabs{float:left;width:455px;height:310px;font-size:80%;margin:1px;}
/************************/
#enquetes{ float:left; width:240px; height:317px; margin:0 0 0 10px; background:#D1FCCF;           -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px;}
#enquetes h2{ font-size:17px; margin:10px 0 10px 0; text-align:center; color:#06C;}
#enquetes strong{ font-size:15px; font-weight:bold; color:#333; display:block; text-align:center; padding:0 5px 5px 5px;}
#enquetes ul{ margin:10px 0 10px 8px;}
#enquetes ul li{margin:2px 0; font-size:15px ;} 
#enquetes a{text-decoration:none; display:block; text-align:center; color:#F60; margin:3px 0; padding:0; font-weight:bold;}
#enquetes .ver_result{font-weight:normal; text-transform:lowercase;}
#enquetes a:hover{color:#F00;}
#enquetes input{background:#005789; border:1 px solid #069; color:#FFF; font-weight:bold; font-variant:small-caps;}
/************************/
#mural{ float:left; width:265px; height:317px; margin:0 0 0 10px;}
#mural h3{ font-size:16px; text-align:center; margin-bottom:5px;}
/**********************
      RODAPE
**********************/
#rodape{ float:left; width:990px; height:auto; margin-bottom:10px; background:#D2D2D2; -moz-border-radius:9px 9px 0 0; -webkit-border-radius:9px 9px 0 0; border-radius:9px 9px 0 0;}
#creditos{ float:left; width:990px; height:auto;}
#creditos p{ text-align:center; font-size:13px; padding:10px 0 10px 0;}
/**********************
     CATEGORY
***********************/
#categorias{ float:left; width:770px; height:auto; margin:10px 0 10px 0;}
#categorias img{ float:left; border:2px solid #333; margin:0 4px 0 5px;}
#categorias img:hover{ border:2px solid #009;}
#categorias h3{ font-size:10px; font-weight:normal; padding-top:3px;}
#categorias ul li{ display:block; height:90px; margin-top:5px;}
#categorias p{ padding:1px 5px 0 0;}
#categorias a{ font-size:14px; color:#333;}
#categorias a:hover{ text-decoration:underline;}
#sidebar-cat{ float:left; width:211px; height:auto; padding:0 3px 0 6px;}
#sidebar-cat h2{ font-size:16px; margin:8px 0 10px 0; padding-bottom:2px; border-bottom:2px solid #009;}
#sidebar-cat ol li{ display:block; margin:0 0 5px 0;}
#sidebar-cat a{ font-size:14px; color:#330;}
#sidebar-cat a:hover{ text-decoration:underline;}
/********************
  CATEGORY EVENTOS
*********************/
#categoria-eventos{ float:left; width:990px; height:auto; margin:5px 0 10px 0;}
#categoria-eventos img{ border:3px solid #333; margin:0 0 0 12px; -moz-border-radius:9px;                        -webkit-border-radius:9px; border-radius:9px;}
#categoria-eventos img:hover{ border:3px solid #960;}
#categoria-eventos p{ font-size:14px; text-align:center; padding:2px 3px 0 3px;}
#categoria-eventos ul li{ display:inline; float:left; width:200px; height:220px; 
                         margin:10px 23px 0 23px;}
/*************************
       SINGLE 
***************************/
#single-noticias{ float:left; width:754px; height:auto; padding:0 8px 0 8px;}
#single-noticias h1{ font-size:16px; margin:8px 0 7px 0;}
#single-noticias p{ font-size:15px; text-align:justify;}
#relacionados { float:left; width:900px; height:auto; margin:10px 0 10px 0; }
#relacionados h3{ font-size:15px; padding:5px 0 0 0;}
#relacionados ul li{ font-size:14px; }
#relacionados a{ color:#333;}
#relacionados a:hover{ background:#999; color:#FFF;}
/************************
    PAGE CONTATO
************************/
#page-contato{ float:left; width:560px; height:auto; margin:0 0 10px 35px;}
#page-contato h1{ text-align:center; font-size:17px; margin:8px 0 8px 0; font-variant:small-caps;           font-weight: bold; color:#005789;}
#page-contato form{width:500px; display:block; margin:0 0 0 10px; padding:10px;
                  background:#E8E8E8; -moz-border-radius:9px; -webkit-border-radius:9px;                   border-radius:9px;}
#page-contato form p{display:block; font:16px; font-weight: bold; color:#005789;
                    font-variant:small-caps;}
#page-contato input{width:488px; padding:5px; border:1px solid #333; font:16px; color:#999; 
                   font-variant:small-caps;}
#page-contato textarea{width:488px; padding:5px; border:1px solid #333; font:16px; color:#999;                       font-variant:small-caps;}
#page-contato .btn{width:150px; display:block; margin:0 auto; font-weight:bold; cursor:pointer;                    background:#fff; color:#666;}
#page-contato .btn:hover{ background:#09F; color:#FFF;}
#page-contato a{color:#005789;}
#page-contato a:hover{color:#F90;}
#contato{ float:left; width:300px; height:200px; margin:100px 0 0 50px; background:#E8E8E8;          -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px;}
#contato h3{text-align:center; font-size:17px; margin:10px 0 8px 0; font-variant:small-caps;           font-weight: bold; color:#005789;}
#contato p{ font-size:14px; font-variant:small-caps; font-weight: bold; margin:10px 0 0 45px;             color:#066;}
/************************
    PAGE PEDIDOS
************************/
#page-pedidos{ float:left; width:560px; height:auto; margin:0 0 10px 35px;}
#page-pedidos h1{ text-align:center; font-size:17px; margin:8px 0 8px 0; font-variant:small-caps;           font-weight: bold; color:#063;}
#page-pedidos form{width:500px; display:block; margin:0 0 0 10px; padding:10px;
                  background:#9F9; -moz-border-radius:9px; -webkit-border-radius:9px;                   border-radius:9px;}
#page-pedidos form p{display:block; font:16px; font-weight: bold; color:#063;
                    font-variant:small-caps;}
#page-pedidos input{width:488px; padding:5px; border:1px solid #333; font:16px; color:#999; 
                   font-variant:small-caps;}
#page-pedidos textarea{width:488px; padding:5px; border:1px solid #333; font:16px; color:#999;                       font-variant:small-caps;}
#page-pedidos .btn{width:150px; display:block; margin:0 auto; font-weight:bold; cursor:pointer;                    background:#fff; color:#666;}
#page-pedidos .btn:hover{ background:#060; color:#FFF;}
#page-pedidos a{color:#005789;}
#page-pedidos a:hover{color:#F90;}
#contatos{ float:left; width:300px; height:200px; margin:100px 0 0 50px; background:#9F9;          -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px;}
#contatos h3{text-align:center; font-size:17px; margin:10px 0 8px 0; font-variant:small-caps;           font-weight: bold; color:#060;}
#contatos p{ font-size:14px; font-variant:small-caps; font-weight: bold; margin:10px 0 0 45px;             color:#063;}
/**************************
      PAGE
****************************/
#page{ float:left; width:770px; text-align:justify; height:auto; padding:10px 5px 10px 5px;}
#menu-lateral{ float:left; width:202px; height:auto; padding:10px 0 0 8px;}
#menu-lateral h2{ font-size:18px; width:180px; margin-bottom:10px; border-bottom:2px solid #006;}
#menu-lateral ul li{ display:block; font-size:14px; margin:3px 0 3px 0;}
#menu-lateral a{ color:#330;}
#menu-lateral a:hover{ text-decoration:underline;}
/**************************
      PAGE VIDEOS
****************************/
#page-videos{ float:left; width:990px; height:auto; margin:5px 0 10px 0;}
#page-videos h2{ font-size:17px; text-align:center; margin:10px 0 0 0;}
   /****************
   Estilo de comentários
   ****************/

   h3#comments,.comment-navigation,.comment-navigation:after,#respond:after,.comment-rss{display:block}
   ol.commentlist{width:100%}
   h3#comments,#respond h3{height:25px;text-align:left;background:#4c7faa;color:#fff;padding:5px 0 0 5px}
   ol.commentlist,li.authorcomment,li.comment,#respond h3,form#commentform,input#submit{margin:0}
   ol.commentlist,ol.commentlist ul,form#commentform{padding:0}
   ol.commentlist{border-bottom:1px solid #ccc}
ol.commentlist P{ margin:15px 0 0 0;}
   ol.commentlist ul{margin:0 0 0 20px}
   li.authorcomment,li.comment,form#commentform textarea,form#commentform input{border:1px solid #ccc}
   li.authorcomment,li.comment{padding:10px 0 0 10px;list-style:none;border-bottom:none}
   li.even{background:#fff}
   li.odd{background:#efefef}
   .authorcomment{background:#deebf9}
   ul.children ul{margin-left:20px}
   ul.children li{border-right:none}
   .vcard img{float:left;background:#c4c4c4}
   .vcard img,.comment-navigation .newer a,.comment-navigation .older a{padding:5px}
   .comment-meta,ol.commentlist li small,p.subscribe-to-comments label{position:relative}
   .comment-meta,ol.commentlist li small{top:10px;left:10px}
   .comment-text{margin:0 10px 0 0}
   .reply,.comment-navigation .newer,input#submit{float:right}
   .reply,.comment-navigation .newer a,.comment-navigation .older a,input#submit{background:#4c7faa}
   .reply{margin:0 10px 10px 0}
   a.comment-reply-link,.reply a:link,
   .comment-navigation .newer a,.comment-navigation .older a,input#submit{display:inline-block;text-align:center;cursor:pointer;color:#fff}
   a.comment-reply-link,.reply a:link{padding:5px 0} a.comment-reply-link,.reply a:link,input#submit{width:70px}
   a.comment-reply-link:hover,.reply a:hover,.comment-navigation .newer a:hover,
   .comment-navigation .older a:hover,input#submit:hover{background:#e7e7e7;text-decoration:none;color:#4c7faa;font-weight:bold}
   a.comment-reply-link:hover,.reply a:hover,input#submit:hover{width:68px}
   a.comment-reply-link:hover,.reply a:hover{padding:4px 0}
   a.comment-reply-link:hover,.reply a:hover,.comment-navigation .newer a:hover,.comment-navigation .older a:hover{border:1px solid #4c7faa}
   .comment-navigation{margin:10px 0 10px 0} .comment-navigation:after,#respond:after{content:".";height:0;visibility:hidden}
   .clear{clear:both}
   .comment-navigation .newer a:hover,.comment-navigation .older a:hover{padding:4px}
   form#commentform textarea,form#commentform input{padding:2px 3px}
   form#commentform textarea{width:442px}
   input#submit{padding:5px 0 !important;border:0 !important}
   input#submit,p.subscribe-to-comments input{outline:0}
   input#submit:hover{padding:4px 0 !important;border:1px solid #4c7faa !important}
   p.subscribe-to-comments{background:url('images/email_32.png') no-repeat}
   p.subscribe-to-comments,.comment-rss{height:32px;text-indent:42px;padding:5px 0 0 0}
   p.subscribe-to-comments input{margin:5px 3px 3px 3px !important;border:0}
   p.subscribe-to-comments label{top:-2px;color:#666}
   .comment-rss{background:url(images/rss.png) no-repeat}

   /*comment total stlying*/

   .comment-total{text-align: center;font-size: 1.5em;color: #fff;}
   .comment-total span{font-size: 2em;color: #800000;}

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.