← WordPress

Dúvidas Wordpress

Lida 7841 vezes

Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

O tema vai ser este.

http://wpthemespt.com/uploads/2009/03/elegance.png

e quero meter um logo a ocupar a largura toda do site, com cerca de 200 px de altura, onde esta a barra vermelha desta imagem.

http://i50.photobucket.com/albums/f325/evoliveira/elegance.png

Obrigado

Queres um logo com essa largura naquele espaço?
Offline

evoliveira 
Membro
Mensagens 206 Gostos 0
Feedback +3

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Sim, vai ser mais ou menos com esse tamanho.

Quero manter tudo o que o tema tem e acrescentar o logo entre aquelas duas "barras".
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Sim, vai ser mais ou menos com esse tamanho.

Quero manter tudo o que o tema tem e acrescentar o logo entre aquelas duas "barras".

Com essas medidas é mais um banner.
Coloca aqui o código do header.php
Offline

evoliveira 
Membro
Mensagens 206 Gostos 0
Feedback +3

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Aqui está.

Código: [Seleccione]
<!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'); ?>" />



<title>

<?php bloginfo('name'); ?>

<?php if(is_home()) { ?>

 - <?php bloginfo('description'); ?>

<?php ?>

<?php if(is_single()) { ?>

<?php wp_title(); ?>

<?php ?>

<?php if(is_404()) { ?>

 - Page Not Found

<?php ?>

<?php if(is_search()) { ?>

 - Search Results for: <?php echo wp_specialchars($s1); ?>

<?php ?>

</title>

<table width="900" border="1" cellpadding="0">
  <tr>
    <img src="/blogtreta.png" />
  </tr>
</table>


<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />



<script src="<?php bloginfo('template_directory'); ?>/js/heightMatch.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/js/topmenudynamic.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/js/dropdown.js" type="text/javascript"></script>



<?php wp_head(); ?>



</head>

<body>



<div id="container">



<!-- page menu and search -->

<div id="top">



<ul id="pagemenu">

<?php wp_list_pages('sort_column=post_date&title_li='); ?>

</ul>



<div id="searchbar">

<form method="get" action="<?php bloginfo('url'); ?>/" class="searchform">

<fieldset>

<label class="searchlabel"><?php _e('Pesquisar no Blog'); ?></label>

<input type="text" value="<?php the_search_query(); ?>" name="s" class="searchterm" />

<input type="submit" value="Pesquisar" class="searchbutton" />

</fieldset>

</form>

</div>



<div class="clear"></div>

</div>

<!-- end -->



<div class="clear"></div>



<!-- header -->

<div id="header">



<div id="header_logo">

<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

<div class="description"><?php bloginfo('description'); ?></div>

</div>



<div id="header_ad">

<?php include (TEMPLATEPATH "/468_60.php"); ?>

</div>



<div class="clear"></div>

</div>

<!-- end -->



<!-- category menu -->

<div id="bar">



<ul id="catmenu">

<li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php ?>><a href="<?php bloginfo('home'); ?>/">Incio</a></li>

<?php wp_list_categories('hide_empty=0&title_li='); ?>

</ul>



<div id="toprss"><a href="<?php bloginfo('rss2_url'); ?>">SUBSCREVER O RSS FEED</a></div>



<div class="clear"></div>

</div>

<!-- end -->



<!-- blog information -->

<div id="bloginfo">

<div id="bloginfobox">



<ul>

<li class="posts"><h2>Últimos Posts</h2>

<ul>

<?php

global $opt;

$recentposts = new WP_query();

$recentposts->query('showposts='.$opt['posts'].'&orderby=date&order=DESC');

?>


<?php while ($recentposts->have_posts()) : $recentposts->the_post(); ?>

<li><div class="r_time"><?php the_time('d F Y'); ?></div><h1 class="r_head"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1></li>

<?php endwhile; ?>

</ul>

</li>



<li class="comments"><h2>Últimos Comentários</h2><?php include (TEMPLATEPATH '/simple_recent_comments.php'); ?><?php if (function_exists('src_simple_recent_comments')) { src_simple_recent_comments($opt['comments'], $opt['c_excerpt'], ''''); } ?>

</li>



<li class="tags"><h2>Sopa de Tags</h2>

<ul>

<li><?php wp_tag_cloud('smallest=8&largest=18&number='.$opt['tags']); ?></li>

</ul>

</li>

</ul>



<div class="clear"></div>

</div>

<div class="clear"></div>

</div>

<!-- end -->

Obrigado
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Ok, onde tens:

Código: [Seleccione]
<div id="header">



<div id="header_logo">

<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

<div class="description"><?php bloginfo('description'); ?></div>

</div>

Ficará assim:

Código: [Seleccione]
<div id="header">

       <img src="LINK DO TEU BANNER" style="float: left;">


<div id="header_logo">

<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

<div class="description"><?php bloginfo('description'); ?></div>

</div>

Se quiseres meter um link nesse banner:

Código: [Seleccione]
<a href="LINK PRETENDIDO"><img src="LINK DO TEU BANNER" style="float: left;"></a>

Cumps
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

É melhor meter dentro do
   <div id="header_logo">
Offline

evoliveira 
Membro
Mensagens 206 Gostos 0
Feedback +3

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Ok, onde tens:

Código: [Seleccione]
<div id="header">





<div id="header_logo">

<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

<div class="description"><?php bloginfo('description'); ?></div>

</div>

Ficará assim:

Código: [Seleccione]
<div id="header">

       <img src="LINK DO TEU BANNER" style="float: left;">


<div id="header_logo">

<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

<div class="description"><?php bloginfo('description'); ?></div>

</div>

Se quiseres meter um link nesse banner:

Código: [Seleccione]
<a href="LINK PRETENDIDO"><img src="LINK DO TEU BANNER" style="float: left;"></a>

Cumps

Assim tambem não dá, a imagem fica por cima do tema e não entre as duas "barras" como eu pretendia.
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Então faz como o cenourinha disse...

Mete o código da imagem dentro da div.
Código: [Seleccione]
<div id="header_logo">
AQUI O TEU CÓDIGO
</div>