Pelo que vi, o problema tá no caminho da imagem.
Você pode usar a função get_template_directory()
para pegar o caminho absoluto da imagem que você quer mostrar.
A função correta neste caso seria get_template_directory_uri()
que retorna a URL do caminho do tema, a função get_template_directory()
retorna o caminho do diretório.
Obrigada pelas respostas !! Mas o problema ainda persiste.
Como eu devo colocar ele nos arquivos ? Coloquei em todos os lados e mesmo assim nao deu certo.
<?php
/**
* Template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other ‘pages’ on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id=”primary”>
<div id=”content” >
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, ‘page’ ); ?>
<?php //comments_template( ”, true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!– #content –>
</div><!– #primary –>
<?php get_sidebar (); ?>
<?php get_footer(); ?>
Opa!!
Como esta o arquivo da sua página inicial? A imagem esta no header mesmo? Será que não tem um header diferente para o index??
Oii!!1
Sim esta no header,
<div id=”page” class=”hfeed”>
<nav id=”access” role=”navigation”>
<h3 class=”assistive-text”><?php _e( ‘Main menu’, ‘twentyeleven’ ); ?></h3>
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
<div class=”skip-link”><?php _e( ‘Skip to primary content’, ‘twentyeleven’ ); ?></div>
<?php if ( ! is_singular() ) : ?>
<div class=”skip-link”><?php _e( ‘Skip to secondary content’, ‘twentyeleven’ ); ?></div>
<?php endif; ?>
<?php /* Our navigation menu. If one isn’t filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn’t assigned, the menu with the lowest ID is used. */ ?>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
</nav><!– #access –>

</header><!– #branding –>
<div id=”main”>
.
E no index ela ja deve estar também, ao ler seu comentario peguei o trexo da imagem, e inseri ele no arquivo index.php y duplicou a minha foto na pagina inicial, mas seguia sem aparecer nas outras.
Seria
inseri essa imagem desde um localhost, de modo que ela se encontra em uma pasta, chamada IMG dentro da pasta WordPress.