Photography, Digital cameraBlog Index - A Blog AggregatorSend email in futureCancer Treatment Free GamesProstatitis, Prostate CancerBreast CancerMore than 500 Flash games for you!Email Future

Como mostrar headers diferentes em seu blog Wordpress How to display different headers on your Wordpress blog

Escrito por Manoel Franklin em Outubro 30, 2008 Written by Manoel Franklin on October 30, 2008

Personalizar seu blog mostrando um header diferente em cada área pode ser uma ótima idéia, confira: Customize your blog showing a header different in each area can be a great idea, check out:

Faça com que o usuário não se canse do seu blog, acabe com a cegueira momentânea causada por grande volume de informações similares, faça seu blog mudar a cada reload e conquiste a atenção dos seus usuários. Have the User does not tire of your blog, put an end to the temporary blindness caused by large volumes of similar information, make your blog change every reload and capture the attention of its users.

lista-tarefas

lista-tarefas task list

Para tanto, basta criar cópiad do seu arquivo header.php, customizá-las de forma a criar várias opções You only need to create copiad your header.php file, customize them to create more options
diferentes de navegação e layout. different navigation and layout. Depois disso, basta editar o header.php antigo adicionando o código Then you can edit the header.php old adding code
abaixo: below:

 <?php php
if (is_page('contact')){ if (is_page ( 'contact')) (
	<?php include(TEMPLATEPATH.'/headercontact.php'); ?> php include (TEMPLATEPATH. '/ headercontact.php');?>
} )
elseif (is_page('gallery')){ elseif (is_page ( 'gallery')) (
	<?php include(TEMPLATEPATH.'/headergallery.php'); ?> php include (TEMPLATEPATH. '/ headergallery.php');?>
} )
else { else (
	<?php include(TEMPLATEPATH.'/headerdefault.php'); ?> php include (TEMPLATEPATH. '/ headerdefault.php');?>
} )
?> ?> 

Este código está restrito as áreas Contato, Galeria e Demais. This code is restricted to areas Contact, Gallery, and Other. Você pode customizar este trecho de You can customize this snippet
código a vontade de forma a criar uma opção diferente para cada área do seu blog. code the will to create a different option for each area of your blog.

As opções são ilimitadas. The options are limitless. Um forte abraço! Sincerely!

Um Comentário to “Como mostrar headers diferentes em seu blog Wordpress” One Response to "How to display different headers on your Wordpress blog"

  1. Revista Internet Internet Magazine Diz: Says

    Achei muito interessante a idéia, não cheguei a testar, mas como desenvolvedor, estou cansado de ver sites que usam sempre o mesmo header, geralmente com o nome do site. I found it very interesting idea, I have not tested, but as a developer, I'm tired of seeing sites that always use the same header, usually with the name of the site. Essa dica não vale só pra blogs, mas para qualquer tipo de site. This tip applies not just for blogs, but for any type of site. Ter o header da página pertinente ao conteúdo é super importante. Having the header of the page relevant to the content is super important.
    Abraço e parabéns pela iniciativa! Hug and congratulations for the initiative!

Deixe um Comentário Leave a Comment