Created
July 10, 2017 22:22
-
-
Save marcosfreitas/1e540c9a876b9e8d1ed3ba761861f00f to your computer and use it in GitHub Desktop.
combinação de títulos para o title do html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title> | |
<?php | |
if(is_home()): | |
bloginfo('name'); | |
elseif( is_category() || is_tag() ): | |
single_cat_title(); echo ' • '; bloginfo('name'); | |
elseif( is_single() || is_page() ): | |
single_post_title(); | |
else: | |
wp_title( '|', true, 'right' ); | |
endif; | |
?> | |
</title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment