Since the most recent upgrades, a weird URL appears at the top of ticket pages:

Home Forums Ticket Products Event Tickets Plus Since the most recent upgrades, a weird URL appears at the top of ticket pages:

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #52977
    xg5tat
    Participant

    iFeature 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
    thanks

    #53012
    Barry
    Member

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

    #53307
    xg5tat
    Participant

    This reply is private.

    #53357
    Barry
    Member

    Great, thanks!

    I’m afraid I’m out of time today but I’ll take a look at this tomorrow morning.

    Thanks for your patience 🙂

    #53420
    Barry
    Member

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

    #53439
    xg5tat
    Participant

    Thanks. I switched the template.

    #53448
    Barry
    Member

    Great – 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 🙂

    #53452
    xg5tat
    Participant

    I realize this other template removes the sidebars. Can I get them back easily and not have the random url?

    #53508
    Barry
    Member

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

    #53718
    xg5tat
    Participant

    When I added those snippets to functions.php, the site did not load.

    #53761
    Barry
    Member

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

    #58806
    Barry
    Member

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

Viewing 12 posts - 16 through 27 (of 27 total)
  • The topic ‘Since the most recent upgrades, a weird URL appears at the top of ticket pages:’ is closed to new replies.