Duilio Gomes Pereira 0 Denunciar post Postado Agosto 7, 2012 Qual o motivo deste erro? /* Always have wp_head() just before the closing * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to such * as styles, scripts, and meta tags. */ wp_head(); ?> Compartilhar este post Link para o post Compartilhar em outros sites
Bruno Augusto 417 Denunciar post Postado Agosto 7, 2012 Em qual parte do seu tema você inseriu a função wp_head()? Compartilhar este post Link para o post Compartilhar em outros sites
Duilio Gomes Pereira 0 Denunciar post Postado Agosto 7, 2012 Em qual parte do seu tema você inseriu a função wp_head()? <?php /** * The Header for our theme. * * Displays all of the <head> section * * @package WordPress * @subpackage Starkers * @since Starkers HTML5 3.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'starkers' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <script src="<?php bloginfo('template_directory'); ?>/js/modernizr-1.6.min.js"></script> <link href='http://fonts.googleapis.com/css?family=Cabin+Condensed:700' rel='stylesheet' type='text/css'> /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="master"> <div id="header"> <header> <div id="logo1"> <img src="http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/logo.jpg"> <div id="facebook"> <a href="https://www.facebook.com/pages/Butcher-Produ%C3%A7%C3%B5es/159453824121832" title="Facebook" target="_blank"> <img src= "http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/facebook.png" alt="Facebook" border="0" /></a> </div> <div id="youtube"> <a href="http://www.youtube.com/user/ericksgodoy/videos" title="Youtube" target="_blank"> <img src= "http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/youtube.png" alt="Youtube" border="0" /></a> </div> <div id="twitter"> <a href="https://twitter.com/ButcherProd" title="Twitter" target="_blank"> <img src= "http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/twitter.png" alt="Twitter" border="0" /></a> </div> </div> </header> </div> <!--fim da div 'header'--> <div id="menu"> <ul> <li><a href="<?php echo get_option('home');?>">HOME</a></li><!-- link para a home page do blog --> <?php wp_list_pages('title_li=') ?><!-- retorna as páginas cadastradas no blog --> </ul> </div> <!--fim da div 'menu'--> <?php /** * The Header for our theme. * * Displays all of the <head> section * * @package WordPress * @subpackage Starkers * @since Starkers HTML5 3.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'starkers' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <script src="<?php bloginfo('template_directory'); ?>/js/modernizr-1.6.min.js"></script> <link href='http://fonts.googleapis.com/css?family=Cabin+Condensed:700' rel='stylesheet' type='text/css'> /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="master"> <div id="header"> <header> <div id="logo1"> <img src="http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/logo.jpg"> <div id="facebook"> <a href="https://www.facebook.com/pages/Butcher-Produ%C3%A7%C3%B5es/159453824121832" title="Facebook" target="_blank"> <img src= "http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/facebook.png" alt="Facebook" border="0" /></a> </div> <div id="youtube"> <a href="http://www.youtube.com/user/ericksgodoy/videos" title="Youtube" target="_blank"> <img src= "http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/youtube.png" alt="Youtube" border="0" /></a> </div> <div id="twitter"> <a href="https://twitter.com/ButcherProd" title="Twitter" target="_blank"> <img src= "http://localhost/butcher/wp-content/themes/nathanstaines-starkers-html5-b101efa/img/twitter.png" alt="Twitter" border="0" /></a> </div> </div> </header> </div> <!--fim da div 'header'--> <div id="menu"> <ul> <li><a href="<?php echo get_option('home');?>">HOME</a></li><!-- link para a home page do blog --> <?php wp_list_pages('title_li=') ?><!-- retorna as páginas cadastradas no blog --> </ul> </div> <!--fim da div 'menu'--> Em qual parte do seu tema você inseriu a função wp_head()? Compartilhar este post Link para o post Compartilhar em outros sites
Bruno Augusto 417 Denunciar post Postado Agosto 7, 2012 Moderadores da Área, por favor editem o post anterior que está com conteúdo duplicado, mas devido a auto-mesclagem do fórum, ficou num post só. Tá vendo o comentário que diz "Always have wp_head()..."? Veja que logo no fim dele a função wp_head() é invocada, antes de </head> corretamente. Mas veja que mais abaixo você invoca a mesma função novamente. Remova a segunda invocação (por comodidade) e veja se resolve. Compartilhar este post Link para o post Compartilhar em outros sites
Duilio Gomes Pereira 0 Denunciar post Postado Agosto 8, 2012 Moderadores da Área, por favor editem o post anterior que está com conteúdo duplicado, mas devido a auto-mesclagem do fórum, ficou num post só. Tá vendo o comentário que diz "Always have wp_head()..."? Veja que logo no fim dele a função wp_head() é invocada, antes de </head> corretamente. Mas veja que mais abaixo você invoca a mesma função novamente. Remova a segunda invocação (por comodidade) e veja se resolve. Obrigado pela atenção Bruno. Resolveu! Compartilhar este post Link para o post Compartilhar em outros sites