Renato Gonçalves 0 Denunciar post Postado Dezembro 27, 2013 Gostaria de substituir a exibição do título do meu Blog por uma imagem (no cabeçalho), mesmo lendo alguns tutoriais presentes aqui não consegui fazer isso no meu tema. Poderiam me ajudar? Segue abaixo o código do Header: header.php <?php global $asteria;?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php get_template_part('style');?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div class="fixed_site"> <!--Maintenance Mode Message--> <?php if((!empty($asteria['offline_id']))){ ?> <div class="lgn_info"><?php _e('The Website is running in Maintenance Mode.', 'asteria'); ?></div> <?php } ?> <!--Get Header Type--> <?php get_template_part('head4'); ?> </div> header-construction.php (se necessário) <?php global $asteria;?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" /> <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php get_template_part('style');?> <?php wp_head(); ?> </head> <body class="ast_maintanace"> <div class="center"> <div class="logo"> <?php if ( is_home() ) { ?> <h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h1> <?php }else{ ?> <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h2> <?php } ?> </div> Compartilhar este post Link para o post Compartilhar em outros sites
sergioronei 0 Denunciar post Postado Janeiro 2, 2014 No header construction mude - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <?php if ( is_home() ) { ?> <h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h1> <?php }else{ ?> <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h2> <?php } ?> </div> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Por: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <?php if ( is_home() ) { ?> <h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><img src="http://www.seusite.com.br/nome-da-imagem.jpg" alt="Texto alternativo" /></a></h1> <?php }else{ ?> <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><img src="http://www.seusite.com.br/nome-da-imagem.jpg" alt="Texto alternativo" /></a></h2> <?php } ?> </div> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Em suma, é só substituir <?php bloginfo('name'); ?> por <img src="http://www.seusite.com.br/nome-da-imagem.jpg" alt="Texto alternativo" /> Compartilhar este post Link para o post Compartilhar em outros sites