duplicate blogtitle on list/calendar pages only

Home Forums Calendar Products Events Calendar PRO duplicate blogtitle on list/calendar pages only

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #40978
    Webb
    Participant

    It’s obviously my theme (Karma by TruThemes) that’s causing the page title to appear twice on the events listing pages only. The problem disappears with the Twenty Eleven theme regardless of other plugins activated. I’ve looked at the various page templates from my theme, various php files from the views and resources folders but can’t figure-out what’s causing the duplication. After hours of trying to figure it out, I would appreciate any help. I would, at least like to know where to look or where to tell the theme author to look to fix it.

    #40998
    Barry
    Member

    Hi Kirks,

    I know you indicated that you have run through a number of troubleshooting steps already, but, leaving your Karma theme in place can you try deactivating other plugins to see if one of those are impacting here?

    Cheers,

    Barry

    #41014
    Webb
    Participant

    Yes, I did and that did not solve the problem. It is obviously the theme causing it.

    #41026
    Barry
    Member

    Hi kirks, I suspect this is due to a bug in The Events Calendar. I’m just trying to confirm with a member of the dev team.

    #41031
    Barry
    Member

    OK, so to give you the background – when something other than the default events template is being used (I’m guessing you are using the default page template?) then The Events Calendar has to “trick” the theme into thinking it has an actual post it can display.

    I’m not quite sure why, but it actually inserts two copies of the same “spoof post” and that is causing the duplicated title (the reason the actual calendar or event list doesn’t display twice is another story 🙂 ).

    In any event, I tested this code with a local copy of Karma and it seems to solve the problem – you would basically put it in your theme’s functions.php file (or your child theme’s equivalent) and it will hopefully take care of this, but do let me know if it does not.

    #41037
    Webb
    Participant

    It didn’t work but I do have a copy of the views folder in my child theme. However, I only customized the list.php and events-list-load-widget-display.php files. I have not made any modifications to ecp-page-template.php

    #41040
    Barry
    Member

    That’s a shame. Unless Events > Settings > Template > Events Template is set to Default Events Template though ecp-page-template.php will not be used.

    Which copy of functions.php did you insert that code into (the child theme or parent theme)?

    #41041
    Webb
    Participant

    Child theme. I just noticed that it works for the Calendar (grid) view but not the Events (list) view. I’m going to disable my custom version of list.php and see if that makes a difference.

    #41042
    Webb
    Participant

    FYI: Deleting the customized list.php did not resolve the duplicate page title problem.

    #41123
    Barry
    Member

    Hmm, well I’m not really sure why that would be – that snippet works for me regardless of whether the month view or upcoming events list are viewed. Is it possible this is either a server-side caching issue (in which case, please clear your cache) or a browser caching issue (in which case, please clear your browser cache and refresh)?

    If not I’ll touch base with one of the dev team members and see if they can provide further guidance.

    #41127
    Webb
    Participant

    I’m not sure how to clear the server cache since it’s hosted by a 3rd party hosting provider. I don’t have a caching plugin nor do I use a caching/CDN service like CloudFlare or ZippyKid. I have just tried multiple browsers that have never visited the page before and even tried from another computer but get the same results.

    #41133
    Barry
    Member

    OK – if you’re not using a caching plugin or a service such as CloudFlare then that probably isn’t the problem. Bear with me while I check in with the team.

    #41220
    Barry
    Member

    Hi again Kirks.

    So I’ve logged an issue for this so that it can be addressed in a future version of The Events Calendar (and I believe the code responsible may be scheduled for removal in any case).

    In the meantime what I’d suggest is either working with your theme author (and please feel free to invite them to contact us if you like) to see if there is an alternative to fetching the title inside a loop of its own, or else breaking it out after one iteration, or else perhaps consider switching to a different template.

    If you use the Default Events Template (which you can select in the Events > Settings > Template settings page) I don’t believe this problem will occur.

    What will very probably cause an issue is the appearance of the Default Events Template under Karma … however this probably isn’t too difficult to solve if you are comfortable editing templates – I suspect some “wrapper” code needs to be injected and probably not much else.

    Some resources to read up on if you want to give that a try:

    Themer’s Guide
    Template Overrides Tutorial

    Thanks!

    #41230
    Webb
    Participant

    I’m not using Default Events Template because of the undesired results. Instead I’m using the Default Page Template. I’ll contact the theme designer and see if I can get some help.
    Thanks!

    #41238
    Barry
    Member

    That could be worthwhile. What I saw in my copy of Karma was that the title is printed inside a loop of its own, of course normally the title need only be printed once so perhaps they could provide a safe way of changing this.

Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘duplicate blogtitle on list/calendar pages only’ is closed to new replies.