Gridview no title if there are no events?

Home Forums Calendar Products Events Calendar PRO Gridview no title if there are no events?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #16736
    Patti
    Participant

    I’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?

    #16770
    Rob
    Member

    Hey 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!

    #16772
    Patti
    Participant

    I 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.

    #16775
    Rob
    Member

    Sure 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.

    #16786
    Rob
    Member

    Thanks 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.

    #16803
    Jonah
    Participant

    Hi 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?

    #16809
    Patti
    Participant

    That 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!

    #16810
    Patti
    Participant

    btw — I realize your code wasn’t setup to do dynamic title… should have said “dynamic title I was hoping for” 😉

    #16852
    Jonah
    Participant

    Hi 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.

    #976350
    Support Droid
    Keymaster

    This 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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Gridview no title if there are no events?’ is closed to new replies.