homepage Welcome to WebmasterWorld Guest from 54.205.205.47
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Add tagline to header
tagline
Chris_urie




msg:4378133
 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(); ?>>

<head>
<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(); ?>
</head>

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

<div id="header">

<div id="head">
<div id="logo">
<?php
$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>
<div id="navi">
<?php
// 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>
<div class="clear"></div>
</div>
</div>

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


Thanks
Chris

 

lorax




msg:4378631
 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 ' - '?

Chris_urie




msg:4378634
 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]

Chris_urie




msg:4378635
 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

lorax




msg:4378761
 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.

Chris_urie




msg:4378777
 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

lorax




msg:4379578
 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
is_page(x)

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved