Criador do tópico
dannybb
(@dannybb)
Alterei mas não deu certo =/
Olha: http://www.dannybb.com.br/paula
Alguém pode me ajudar por MSN?
Adiciona aí: msn@dannybb.com.br
Tenta copiar e colar como eu coloquei acima. No seu site não está aparecendo nem a tag da imagem.
Copia e cola e depois verifica se está copiado corretamente.
Criador do tópico
dannybb
(@dannybb)
Eu copiei e colei… já fiz isso umas 500 vezes e não vai =/
Sua imagem deve ser inserida da seguinte forma:
http://www.dannybb.com.br
<img src="<?php bloginfo('url'); ?>/paula/logomarca.png" alt="Logo" />
Pode haver variação dentro do bloginfo(), dependendo de onde sua imagem esta.
Ex:
Se a imagem estiver na pasta raiz
bloginfo('url')/img/logomarca.png
url = http://example/home
Se a imagem estiver na pasta do template
bloginfo('template_directory')/img/logomarca.png
template_directory = http://example/home/wp/wp-content/themes/seuTema
tb da pra add por css.
eu uso asim nos meus sites:
<!--incio logo-->
<div id="logo">
<h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
</div>
<!--final logo-->
depois o css é asim:
#logo{background:url(pasta-das-images-do-thema/seu-logo.png) no-repeat;height:XXXpx;width:XXXpx;margin:0 auto;}
#logo h1 a{display:block;width:XXXpx;color:#cc2a43;text-decoration:none;letter-spacing:-2px;text-indent:-9009px;height:XXXpx;padding-top:0}
onde ta as XXX voce tem q colocar o tamanho exato do seu logo.
Criador do tópico
dannybb
(@dannybb)
Fiz essas duas coisas e ainda assim não deu certo.. acho que eu não to sabendo fazer =/
Se alguem puder editar o codigo e me mandar por aqui ja como devo upar, ou me adicionar no msn/enviar email =~~ pleaaase
style.css
/**
Theme Name: Infinity
Author URI: http://wpjunction.com
Version: 1.0
Author: hpa
Description: Magazine Theme
*/
/* -------------------------------------- */
.clearfix:after { /* FF, O, etc. */
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
display: inline-block; /* IE7xhtml*/
}
html[xmlns] .clearfix { /* O */
display: block;
}
* html .clearfix {
height: 1%; /* IE5-6 */
}
html { background:#202020 url(images/background.png) 1px 0; }
body {
background:url(images/background.gif) repeat-x 0 0;
font:normal 12px Georgia,"Times New Roman","Bitstream Charter",Times,serif;
color:#8e8e8e;
}
a {
color:#88a1ba;
text-decoration:none;
}
a:hover { color:#fff; }
#wrap {
width:1154px;
margin:0 auto;
}
/* header */
#header {
font-style:italic;
margin-bottom:26px;
}
#navigation {
float:right;
margin:5px 0;
height:43px;
overflow:hidden;
}
#navigation ul li {
line-height:40px;
display:inline;
margin:0 25px;
font-size:14px;
}
#navigation a{ color:#969696; }
#navigation a:hover, #navigation .current_page_item a { color:#4d657b; }
#site-title {
clear:both;
font-size:31px;
font-weight:normal;
padding-top:27px;
}
#site-title a { color:#88a2bb; }
#site-title a:hover { color:#fff; }
#site-description {
font-size:16px;
font-weight:normal;
color:#fff;
margin-bottom:36px;
}
#top-container { margin-bottom:9px; }
#c-recent-entries {
font-size:17px;
float:left;
width:318px;
}
#c-recent-entries h2 {
font-style:italic;
font-weight:normal;
color:#82acd3;
margin-bottom:5px;
}
#c-recent-entries ul li {
background:transparent url(images/icon-note.gif) no-repeat 2px 7px;
line-height:28px;
border-bottom:1px solid #2c2c2c;
padding-left:20px;
font-size:13px;
}
#c-recent-entries a { color:#d0d0d0; }
#c-recent-entries a:hover { color:#88a1ba; }
#featured-post {
background:#2b2b2b url(images/inner-bg.png);
border:1px solid #2e2e2e;
float:right;
width:824px;
}
#featured-post .read-more {
background:#8ea7c0;
float:right;
line-height:34px;
padding:0 18px;
color:#fff;
}
#featured-post a.read-more:hover { color:#000; }
#featured-post .title {
font-size:22px;
font-weight:normal;
font-style:italic;
padding:8px;
}
#featured-post .title a { color:#90aac3; }
#featured-post .title a:hover { color:#90aac3; }
#featured-post .entry {
padding:0 8px 8px;
}
.meta {
background:#353535;
line-height:35px;
border-top:1px solid #3c3c3c;
padding:0 8px;
text-align:right;
color:#88a1ba;
font-size:14px;
font-style:italic;
}
.meta a { color:#88a1ba; }
.meta a:hover { color:#fff; }
#featured-post .meta, #featured-post .meta a { color:#1a1a1a; }
#featured-post .meta a:hover { color:#fff; }
/* content */
#content {
float:left;
width:614px;
}
.pagetitle {
font-weight:normal;
font-size:16px;
color:#fff;
margin-bottom:9px;
}
.post {
background:#2b2b2b url(images/inner-bg.png) 4px 0;
border:1px solid #2e2e2e;
padding:7px 7px 0;
margin-bottom:9px;
}
.post .title, .title-404 {
font-size:24px;
font-weight:normal;
font-style:italic;
color:#88a1ba;
padding:0 2px;
margin-bottom:8px;
}
.title-404 { border-bottom:none !important; }
.thumbnail {
background:#fff;
float:left;
padding:5px;
border:1px solid #373737;
display:inline;
}
.post .entry {
margin-left:105px;
font:normal 11px Tahoma,Verdana,Arial;
}
.no-image { margin:0 !important; }
#post-pages {
margin-bottom:8px;
font-size:16px;
}
.post .meta {
line-height:35px;
font-style:italic;
margin:0 -7px;
padding:0 8px;
text-align:left;
}
.meta .inner, .date-post, .categories-post, .read-more { position:relative; }
.meta .inner {
height:35px;
}
.date-post, .categories-post, .read-more { z-index:2; }
.post .meta a.read-more {
font-size:18px;
float:right;
margin-left:5px;
}
.p-404 { margin-bottom:9px; }
/* wp-pagenavi */
#wp-pagenavi-wrapper {
background:#2b2b2b url(images/inner-bg.png);
clear:both;
height:51px;
position:relative;
padding:0 8px;
margin-bottom:5px;
border:1px solid #303030;
}
.wp-pagenavi {
padding-top:19px;
font:normal 11px Tahoma, Verdana, Arial;
}
.wp-pagenavi span.pages, .wp-pagenavi span.current, .wp-pagenavi a, .wp-pagenavi a:link, .wp-pagenavi span.extend {
background:#353535 !important;
color:#fff !important;
text-transform:uppercase;
padding:7px 9px !important;
border-color:#272727 !important;
}
.wp-pagenavi span.pages, .wp-pagenavi a:hover {
background:#8da6bf !important;
border-color:#202020 !important;
}
/* sidebar */
#sidebar {
float:right;
width:312px;
overflow:hidden;
display:inline;
}
.widget {
margin-bottom:9px;
color:#9a9a9a;
}
#sidebar .widget {
background:#2b2b2b url(images/inner-bg.png) 3px 0;
width:296px;
padding:0 8px 8px;
border:1px solid #313131;
position:relative;
}
.widget-title {
font-style:italic;
font-weight:normal;
}
#sidebar .widget-title {
background:#adce28 url(images/grey-bg.gif) repeat-x 0 0;
font-size:21px;
color:#708ca6;
border:1px solid #fff;
height:35px;
line-height:35px;
overflow:hidden;
padding:0 30px 0 10px;
margin:0 -8px;
}
.widget ul li {
line-height:28px;
color:#9a9a9a;
}
.widget ul ul {
padding-left:10px;
}
.widget a { color:#9a9a9a; }
.widget a:hover { color:#fff; }
.toggle {
background:transparent url(images/widget-toggle.gif) no-repeat 0 0;
width:20px;
height:23px;
position:absolute;
right:0;
top:0;
z-index:3;
}
.pointer { cursor:pointer; }
.widget .toggle-down { background:transparent url(images/widget-toggle.gif) no-repeat 0 -23px !important; }
.compact {
height:29px;
overflow:hidden;
}
/* second-sidebar */
#second-sidebar {
float:right;
width:206px;
padding:0 9px 9px;
font-style:italic;
overflow:hidden;
display:inline;
}
#second-sidebar .widget-title {
margin-bottom:5px;
font-size:22px;
color:#92acc5;
}
#second-sidebar .widget ul li {
border-bottom:1px solid #2e2e2e;
}
#second-sidebar .widget ul li li {
border-bottom:none;
border-top:1px solid #2e2e2e;
}
#second-sidebar a { color:#818181; }
#second-sidebar a:hover { color:#88a1ba; }
/* footer */
#footer {
padding:18px 0;
color:#9c9c9c;
font-style:italic;
line-height:18px;
}
header.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'); ?>" />
<meta name="author" content="misbah" />
<title><?php
if (is_home()) {
bloginfo('name');
} elseif (is_404()) {
echo '404 Not Found'; echo ' | '; bloginfo('name');
} elseif (is_category()) {
echo 'Category:'; wp_title(''); echo ' | '; bloginfo('name');
} elseif (is_search()) {
echo 'Search Results'; echo ' | '; bloginfo('name');
} elseif ( is_day() || is_month() || is_year() ) {
echo 'Archives:'; wp_title(''); echo ' | '; bloginfo('name');
} else {
echo wp_title(''); echo ' | '; bloginfo('name');
}
global $codename,$$codename; ?>
</title>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/lavalamp.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/slide.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/comments.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/widgets.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/jquery.tabs.css" type="text/css" media="screen" />
<?php wp_enqueue_script('jquery'); ?>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/style-ie.css" />
<![endif]-->
<?php wp_head(); ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.lavalamp.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/slide.noconflict.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.tabs.pack.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#top-s').val('Type text to search').focus(function(){ $(this).val(''); }).blur(function(){ if($(this).val() == '') $(this).val('Type text to search'); });
$('#searchform').parent().addClass('search-fix');
$('.current-cat').addClass('current');
$('.lavaLampWithImage').lavaLamp({
fx: "backout",
speed: 900,
click: function(event, menuItem) {
return true;
}
});
$('#tab-content').tabs({ fxSlide: true });
$('.tabs-container ul li').hover(
function(){$(this).addClass('hover')},
function(){$(this).removeClass('hover')}
);
//toggle on sidebar
$('.toggle').each(function() {
$(this).addClass('pointer');
var widgetHeader = $(this).parent();
$(this).toggle(
function() {
$(this).addClass('toggle-down');
widgetHeader.addClass('compact');
},
function() {
$(this).removeClass('toggle-down');
widgetHeader.removeClass('compact');
}
);
});
});
</script>
</head>
<body><div id="wrap">
<div id="header" class="clearfix">
<div id="navigation" class="menu clearfix">
<ul>
<li class="page_item <?php if(is_home()): ?>current_page_item<?php endif ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
</ul>
</div><!-- /navigation -->
<h1 id="site-title"><a href="<?php echo get_option('home') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></h1>
<?php if (is_home()): ?>
<h2 id="site-description"><?php bloginfo('description') ?></h2>
<?php else: ?>
<div id="site-description"><?php bloginfo('description') ?></div>
<?php endif ?>
<div id="cat-menu" class="clearfix">
<ul class="lavaLampWithImage">
<?php wp_list_categories('sort_column=name&title_li=&depth=1'); ?>
</ul>
</div><!-- /cat-menu -->
</div><!-- /header -->
<div id="container" class="clearfix">
A imagem está na pasta do ‘images’ do template ‘logomarca.png’ e também na pasta raiz do blog http://www.dannybb.com.br/paula/logomarca.png
Tenta Assim!
Mas acho que a largura da sua imagem nao esta se encaixando direito no layout do template.
<!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'); ?>" />
<meta name="author" content="misbah" />
<title><?php
if (is_home()) {
bloginfo('name');
} elseif (is_404()) {
echo '404 Not Found'; echo ' | '; bloginfo('name');
} elseif (is_category()) {
echo 'Category:'; wp_title(''); echo ' | '; bloginfo('name');
} elseif (is_search()) {
echo 'Search Results'; echo ' | '; bloginfo('name');
} elseif ( is_day() || is_month() || is_year() ) {
echo 'Archives:'; wp_title(''); echo ' | '; bloginfo('name');
} else {
echo wp_title(''); echo ' | '; bloginfo('name');
}
global $codename,$$codename; ?>
</title>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/lavalamp.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/slide.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/comments.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/widgets.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/jquery.tabs.css" type="text/css" media="screen" />
<?php wp_enqueue_script('jquery'); ?>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/style-ie.css" />
<![endif]-->
<?php wp_head(); ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.lavalamp.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/slide.noconflict.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.tabs.pack.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#top-s').val('Type text to search').focus(function(){ $(this).val(''); }).blur(function(){ if($(this).val() == '') $(this).val('Type text to search'); });
$('#searchform').parent().addClass('search-fix');
$('.current-cat').addClass('current');
$('.lavaLampWithImage').lavaLamp({
fx: "backout",
speed: 900,
click: function(event, menuItem) {
return true;
}
});
$('#tab-content').tabs({ fxSlide: true });
$('.tabs-container ul li').hover(
function(){$(this).addClass('hover')},
function(){$(this).removeClass('hover')}
);
//toggle on sidebar
$('.toggle').each(function() {
$(this).addClass('pointer');
var widgetHeader = $(this).parent();
$(this).toggle(
function() {
$(this).addClass('toggle-down');
widgetHeader.addClass('compact');
},
function() {
$(this).removeClass('toggle-down');
widgetHeader.removeClass('compact');
}
);
});
});
</script>
</head>
<body><div id="wrap">
<div id="header" class="clearfix">
<----Adicionar depois da DIV header -------Modificação---------------->
<img src="<?php bloginfo('url'); ?>/paula/logomarca.png" alt="Logo" />
<--------------------------->
<div id="navigation" class="menu clearfix">
<ul>
<li class="page_item <?php if(is_home()): ?>current_page_item<?php endif ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
</ul>
</div><!-- /navigation -->
<h1 id="site-title"><a href="<?php echo get_option('home') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></h1>
<?php if (is_home()): ?>
<h2 id="site-description"><?php bloginfo('description') ?></h2>
<?php else: ?>
<div id="site-description"><?php bloginfo('description') ?></div>
<?php endif ?>
<div id="cat-menu" class="clearfix">
<ul class="lavaLampWithImage">
<?php wp_list_categories('sort_column=name&title_li=&depth=1'); ?>
</ul>
</div><!-- /cat-menu -->
</div><!-- /header -->
<div id="container" class="clearfix">