Home › Forums › Calendar Products › Events Calendar PRO › duplicate blogtitle on list/calendar pages only
- This topic has 17 replies, 2 voices, and was last updated 13 years, 1 month ago by
Barry.
-
AuthorPosts
-
February 25, 2013 at 11:55 pm #40978
Webb
ParticipantIt’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.
February 26, 2013 at 6:34 am #40998Barry
MemberHi 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
February 26, 2013 at 7:38 am #41014Webb
ParticipantYes, I did and that did not solve the problem. It is obviously the theme causing it.
February 26, 2013 at 9:42 am #41026Barry
MemberHi 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.
February 26, 2013 at 10:10 am #41031Barry
MemberOK, 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.
February 26, 2013 at 10:47 am #41037Webb
ParticipantIt 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
February 26, 2013 at 10:51 am #41040Barry
MemberThat’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)?
February 26, 2013 at 10:56 am #41041Webb
ParticipantChild 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.
February 26, 2013 at 10:59 am #41042Webb
ParticipantFYI: Deleting the customized list.php did not resolve the duplicate page title problem.
February 27, 2013 at 7:04 am #41123Barry
MemberHmm, 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.
February 27, 2013 at 7:22 am #41127Webb
ParticipantI’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.
February 27, 2013 at 8:10 am #41133Barry
MemberOK – 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.
February 28, 2013 at 6:13 am #41220Barry
MemberHi 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 TutorialThanks!
February 28, 2013 at 8:04 am #41230Webb
ParticipantI’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!February 28, 2013 at 8:43 am #41238Barry
MemberThat 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.
-
AuthorPosts
- The topic ‘duplicate blogtitle on list/calendar pages only’ is closed to new replies.
