• I just noticed the blog title and tag line will not display on my home page, https://www.troop166.net. It work previously with no trouble.
    What shows in the title is | <? bloginfo(‘name’); ?>
    Page Source shows,
    <title>
    | <? bloginfo(‘name’);? > </title>
    Like it’s being literal after the | Maybe the function bloginfo(‘name’) is no longer working?
    I’m using the defusion theme. header.php is
    <title>
    <?php if ( is_home() ) { ?><?php bloginfo(‘description’); ?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php echo $s; ?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(”); ?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php wp_title(”); ?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_category() ) { ?>Archive <?php single_cat_title(); ?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_month() ) { ?>Archive <?php the_time(‘F’); ?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_tag() ) { ?><?php single_tag_title();?> | <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_404() ) { ?>Sorry, not found! | <? bloginfo(‘name’); ?><?php } ?>
    </title>

    Nothing major or much different here.
    Any clues?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try replacing <? bloginfo('name'); ?><?php } ?> with <?php bloginfo('name'); ?>.

    Thread Starter meclark

    (@meclark)

    That replacement causes the page to not display at all. error log shows
    PHP Parse error: syntax error, unexpected $end in …/defusion/header.php on line 52

    Try this:
    Add
    <?php if ( is_home() ) { ?>
    <? bloginfo(‘name’); ?> before <?php bloginfo(‘description’); ?> | <? bloginfo(‘name’); ?> as in bellow code (Just the first portion of your code).

    If that doesnt do it try this code (replacing your entire code – save it first)

    <title>
    <?php if ( is_home() ) { ?>
    
    <? bloginfo('name'); ?><?php bloginfo('description'); ?> | <? bloginfo('name'); ?>
    
    <?php if ( is_search() ) { ?><?php echo $s; ?> | <? bloginfo('name'); ?>
    
    <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <? bloginfo('name'); ?>
    
    <?php if ( is_page() ) { ?><?php wp_title(''); ?> | <? bloginfo('name'); ?>
    
    <?php if ( is_category() ) { ?>Archive <?php single_cat_title(); ?> | <? bloginfo('name'); ?>
    
    <?php if ( is_month() ) { ?>Archive <?php the_time('F'); ?> | <? bloginfo('name'); ?>
    
    <?php if ( is_tag() ) { ?><?php single_tag_title();?> | <? bloginfo('name'); ?>
    
    <?php if ( is_404() ) { ?>Sorry, not found! | <? bloginfo('name'); ?>
    <?php } ?>
    
    <?php } ?>
    </title>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog title and tag line do not display’ is closed to new replies.