Support » Themes and Templates » wp_title Help. Simple, I think?

  • inlmbrt

    (@inlmbrt)


    Hello,

    I have been playing around with my blog titles and notice a small, mainly irritating bug that happens when a post does not have a headline.

    Right now, my blog displays the title as: My Name / Title.
    When I view a post that does not have a title, it displays as: My Name /

    Is there a way I can default the title to something I choose?

    Thanks a million,
    Ian.

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Yes- by testing for a post title in header.php and applying default title if none exists.

    inlmbrt

    (@inlmbrt)

    Thanks esmi, How would I go about doing that?

    inlmbrt

    (@inlmbrt)

    Would it be possible to set different defaults for different pages with no titles?

    [No bumping, thank you.]

    esmi

    (@esmi)

    In theory, yes, but you’d need to code conditionals for each page or set of pages.

    inlmbrt

    (@inlmbrt)

    Thanks for the reply esmi.

    Can you please help me with some of the code?

    inlmbrt

    (@inlmbrt)

    Can anyone please help me?

    All I am wanting to achieve is an else that returns a default HTML title for a title-less post.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp_title Help. Simple, I think?’ is closed to new replies.