WordPress.org

Ready to get started?Download WordPress

Forums

wp_title Help. Simple, I think? (7 posts)

  1. inlmbrt
    Member
    Posted 2 years ago #

    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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  3. inlmbrt
    Member
    Posted 2 years ago #

    Thanks esmi, How would I go about doing that?

  4. inlmbrt
    Member
    Posted 2 years ago #

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

    [No bumping, thank you.]

  5. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  6. inlmbrt
    Member
    Posted 2 years ago #

    Thanks for the reply esmi.

    Can you please help me with some of the code?

  7. inlmbrt
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic