homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

Add tagline to header

 9:49 pm on Oct 22, 2011 (gmt 0)

ok so im trying to get the tagline of my WP blog to show but only the title is

the header.php code is

<!DOCTYPE html><!-- HTML 5 -->
<html <?php language_attributes(); ?>>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<title><?php bloginfo('name'); if(is_home() || is_front_page()) { echo ' - '; bloginfo('description'); } else { wp_title(); } ?></title>

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

<body <?php body_class(); ?>>
<div id="wrapper">

<div id="header">

<div id="head">
<div id="logo">
$options = get_option('themezee_options');
if ( isset($options['themeZee_logo']) and $options['themeZee_logo'] <> "" ) { ?>
<a href="<?php echo home_url(); ?>"><img src="<?php echo esc_url($options['themeZee_logo']); ?>" alt="Logo" /></a>
<?php } else { ?>
<a href="<?php echo home_url(); ?>/"><h1><?php bloginfo('name'); ?></h1></a>
<?php } ?>
<div id="navi">
// Get Top Navigation out of Theme Options
wp_nav_menu(array('theme_location' => 'navi', 'container' => false, 'echo' => true, 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0));
<div class="clear"></div>

<?php if( get_header_image() != '' ) : ?>
<div id="custom_header_bg">
<div id="custom_header">
<img src="<?php echo get_header_image(); ?>" />
<?php endif; ?>




 12:25 pm on Oct 24, 2011 (gmt 0)

Hello and welcome to WebmasterWorld!
Just checking the obvious here - did you write something in the tagline field?

Do you get anything from that if/then statement that indicates the logic is working like the ' - '?


 12:39 pm on Oct 24, 2011 (gmt 0)

This is a copy of the header.php file from the default install of the theme, but only the tile shows

[edited by: lorax at 5:08 pm (utc) on Oct 24, 2011]


 12:41 pm on Oct 24, 2011 (gmt 0)

And yes sorry just to be clear i do have something in the tagline field, Sorry i misread your post


 5:25 pm on Oct 24, 2011 (gmt 0)

But you didn't answer my question. Do you get anything after the title? Maybe you can tell me what the Tagline should say?

PS - please don't post a link to your website here. Thanks.


 5:47 pm on Oct 24, 2011 (gmt 0)

No the only thing that displays is the title (My personal Blog) but not the tagline (Reviews, Tech, Linuc and Gaming)

Im not good at code and cant see anything wrong with the code i have also contacted the theme creator but have had no response


 3:10 pm on Oct 26, 2011 (gmt 0)

Try changing this portion of the code
is_home() || is_front_page()
to use the page id instead

See: [codex.wordpress.org...]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved