Headline is empty
-
Hi,
I’ve got a theme with a nice headline bar displaying the_title(); before content and article. Using Tribe Events Calendar this bar remains empty. Because no page is used for display but basic standard template.
I would be fine if I could just say something like “if (the_title() == ”) display ‘Events’ as headline in general. Else display the_title();” It does work with tribe Events but it doesn’t work with pages. In pages the_title(); in the title bar is displayed as ‘Events’ and the page’s title appears somewhere else beyond any context and format.
It doesn’t work with “if (the_title() === ”) display ‘Events'” either. Then I do have the_title(); of posts and pages in the title bar but also beyond context and unformatted somewhere else as well.
Probably there is some conditional query to decide, whether a template is used for displaying tribe events or not?
Help would be much appreciated – thank you very much
- The topic ‘Headline is empty’ is closed to new replies.