inlmbrt
Member
Posted 4 months 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.
Yes- by testing for a post title in header.php and applying default title if none exists.
inlmbrt
Member
Posted 4 months ago #
Thanks esmi, How would I go about doing that?
inlmbrt
Member
Posted 4 months ago #
Would it be possible to set different defaults for different pages with no titles?
[No bumping, thank you.]
In theory, yes, but you'd need to code conditionals for each page or set of pages.
inlmbrt
Member
Posted 4 months ago #
Thanks for the reply esmi.
Can you please help me with some of the code?
inlmbrt
Member
Posted 4 months 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.