Home › Forums › Calendar Products › Events Calendar PRO › Gridview no title if there are no events?
- This topic has 9 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 14, 2012 at 9:07 am #16736
Patti
ParticipantI’m using the most recent versions of WP & ECP, on a child theme of Twenty Ten that has no tag modification. There are no SEO or other plugins that would tamper with the title.
Just noticed on the gridview (calendar) page, there is no title on the page unless there are events for that month. And by title I mean, the title right above the month / year selector. The meta title is fine and shows up the way it should.
I tried moving the piece of code for that above the “This title is here for ajax loading…” line, and above the div, but that didn’t fix it.
Tried adding a separate wp_title() to the file, but that just gives me duplicate title on pages with events AND it shows up with “previous month” link over top of it.
Help?March 14, 2012 at 9:02 pm #16770Rob
MemberHey Patti. Thanks for the report here. Any chance you can share a link to the site for us? Would sure help in trying to diagnose the issue…let me know!
March 14, 2012 at 9:07 pm #16772Patti
ParticipantI can’t post the link because it’s in a development area. If you want to send me an email or tell me where to email, I can get you the info.
March 14, 2012 at 9:10 pm #16775Rob
MemberSure thing. Shoot an email to pro /a/ tri.be with a link to this thread and either a link to the dev site or just a screenshot of what you’re seeing, and I can get a dev on our end to take a look when they hit the forum first thing tomorrow morning.
March 15, 2012 at 8:32 am #16786Rob
MemberThanks Patti. I’ve received this and can see the issue now; since your site looks super basic/straightforward I would be surprised if another plugin or the theme was responsible here. Let me get Jonah to take a look when he hits the forums today, to see if this rings similar to any known issues he’s aware of in our system….or if not, whether he can point you in the right direction here. Stay tuned.
March 15, 2012 at 9:54 am #16803Jonah
ParticipantHi Patti, interesting issue… There have been other reports of issues with the page title and part of the problem has to do with the way we have the templates setup which is going to be changing soon in an upcoming version. For now, you’ll need to hard code in the titles but actually this is nice because it will give you more control. So, depending on what you have set for your template option in Settings > The Events Calendar (Default Events Template or Default Page Template), you’ll want to modify one of two files.
If you’re using the Default Events Template you’ll want to modify: /wp-content/plugins/the-events-calendar/views/ecp-page-template.php – make a copy of that file and place in an ‘events’ folder in your theme. Then open it up in your editor of choice and replace the block on line 19 with: https://gist.github.com/2045249
If you’re using the Default Page Template you’ll want to modify the page.php template file in your theme with the same code wherever the_title() is called.
Does that help?
March 15, 2012 at 11:26 am #16809Patti
ParticipantThat worked on the default page template…. but didn’t give me the dynamic title. But your code got me to thinking in a different direction. Managed to get to work with if tribe-is-month, then tribe-events-title, else, the-title.
Thanks for your help!
March 15, 2012 at 11:28 am #16810Patti
Participantbtw — I realize your code wasn’t setup to do dynamic title… should have said “dynamic title I was hoping for” 😉
March 16, 2012 at 10:33 am #16852Jonah
ParticipantHi Patti, glad you got it figured out! Yeah it’s not setup to be dynamic for the event pages but will revert to using the_title() for any other pages. Sounds like you tweaked the code to your needs though. Let me know if you need anything else with this.
July 6, 2015 at 5:00 pm #976350Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Gridview no title if there are no events?’ is closed to new replies.
