Home › Forums › Ticket Products › Event Tickets Plus › Since the most recent upgrades, a weird URL appears at the top of ticket pages:
- This topic has 26 replies, 2 voices, and was last updated 12 years, 9 months ago by
Barry.
-
AuthorPosts
-
July 3, 2013 at 10:43 am #52977
xg5tat
ParticipantiFeature Pro 5
cyberchimps.com
i have the theme and it should be okay to share but i need an email address or similar to which I can send it privately
thanksJuly 3, 2013 at 12:28 pm #53012Barry
MemberIf you can’t post a download link here (which you can do privately and is preferred) then please email it to pro-at-tri-dot-be. You should mark it for my attention and link back to this thread.
Thanks!
July 4, 2013 at 11:20 am #53307xg5tat
ParticipantThis reply is private.
July 4, 2013 at 4:28 pm #53357Barry
MemberGreat, thanks!
I’m afraid I’m out of time today but I’ll take a look at this tomorrow morning.
Thanks for your patience 🙂
July 5, 2013 at 7:38 am #53420Barry
MemberThanks for bearing with me. Let me summarize what is happening first of all:
- You are (I’m assuming) using the Default Page Template – selected from within Events > Settings > Display and, conventionally, the page template will house just one piece of content – a page – and therefore they are typically designed to display the post title once, usually at the top
- Since you are using it to (potentially) display a list of lots of different posts, albeit they happen to be events, we need to be able to print out lots of different titles. For that reason The Events Calendar plays a “trick” in that it sets the page title to an empty string – it then populates the page content with events (and of course each event can have its own title, independent of what the page template allows for)
- Without this you wouldn’t be able to effectively use the default page template. What’s perhaps unusual about your theme is that if it finds the page title is empty it substitutes the page permalink. A page, in the normal WordPress sense, hasn’t actually loaded however hence the strange nature of what is being displayed (example.com/?page_id=-9999)
So that gives the background of what’s happening. What we need of course is a workaround.
- You could switch to using the Default Events Template and, if necessary, customize it so that it meshes nicely with your theme
- If you want to keep using the Default Page Template then you could try adding this snippet to your theme’s functions.php file (noting that, per iFeature instructions, it ought to be done from within a child theme)
- Or indeed you could do a few other things such as overriding and adapting your theme’s content.php template – but I’ll leave it to you to investigate other options if the above aren’t acceptable
Does that help at all?
July 5, 2013 at 8:30 am #53439xg5tat
ParticipantThanks. I switched the template.
July 5, 2013 at 9:05 am #53448Barry
MemberGreat – if there’s anything else please just update this thread (if it relates to the same problem) or create new threads as needed.
I hope everything else goes smoothly for you – and thanks for your patience and support 🙂
July 5, 2013 at 9:35 am #53452xg5tat
ParticipantI realize this other template removes the sidebars. Can I get them back easily and not have the random url?
July 5, 2013 at 12:48 pm #53508Barry
MemberYou can definitely customize that template and add a get_sidebar() call (or otherwise follow your theme’s conventions for adding a sidebar) – or alternatively are you able to use the snippet I provided?
July 7, 2013 at 6:50 pm #53718xg5tat
ParticipantWhen I added those snippets to functions.php, the site did not load.
July 8, 2013 at 6:41 am #53761Barry
MemberI’m not sure why that would cause a problem – it works for me in a default theme (albeit it isn’t needed there) as well as within the theme you sent to me … is it possible you made a mistake when copying it to your theme’s functions.php file? If you want to share it via Pastebin or a similar service please do and I’ll be happy to take a look.
If it’s not going to work for you though then you would need to customize default-template.php (please see our Themer’s Guide for an overview of this).
August 5, 2013 at 6:58 am #58806Barry
MemberSince it’s been quite a while without any update I’ll go ahead and close this one. If we can do anything else to help please just create a fresh thread.
-
AuthorPosts
- The topic ‘Since the most recent upgrades, a weird URL appears at the top of ticket pages:’ is closed to new replies.
