• Hi Anders and team

    I love Hitchcock. I’ve used it for 2 years now and have been completely happy with it. But I never updated the theme until today, and it’s broken my individual events display.

    I use The Events Calendar for the courses I run and it too has been working fine, though the integration with the theme is not quite as nice as I’d like so it occurred to me you might have included events support in your latest update.

    On first view I was very excited as the events were displayed in the default layout for the posts summary page and although it loses some functionality present in the previous page-based display delivered by the plugin, none of that was crucial to me so I was happy with the change. Although not all the featured images are being picked up.

    But clicking on an individual event spells disaster. It returns the summary page again but with two blank squares, both of which have links to the individual event in question, but clicking on them simply returns the summary page again. It’s impossible to get to the individual event information. The same thing happens from the Latest Posts page where the events are also listed. Individual posts are fine. The events are not.

    This is a crucial time for me with people booking up for courses and this is a disaster! I’ve tried all 3 styling options in The Events Calendar’s settings, including their own fully styled option, and all three choices return the same result.

    I would be really grateful for your help here to try to diagnose the problem. I would like to keep the summary events page display (though with it working properly) but individual events MUST be accessible as a standard post!

    The summary events page is the one linked.

    Also, I would really like to know how to remove the “skip to content” button from the top left land corner of the menu bar as I am not keen on this new feature at all.

    Thank you for your time.

    • This topic was modified 4 years, 9 months ago by caldoverde.
    • This topic was modified 4 years, 9 months ago by caldoverde.
    • This topic was modified 4 years, 9 months ago by caldoverde.
    • This topic was modified 4 years, 9 months ago by caldoverde.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter caldoverde

    (@caldoverde)

    Just to add, I’m going to leave the site as is for 24 hours but then I’m going to have to go back to the previous version of the theme because I can’t have the events inaccessible, so if you’re not able to look at this later today then you won’t see it when you click on the link.

    Theme Author Anders Norén

    (@anlino)

    Hi @caldoverde,

    One of the more recent updates to Hitchcock changed the theme to use a single template file for displaying all singular pages (posts/pages/custom post types), to make the theme easier for me to update and for others to modify.

    By default, all post types in WordPress fall back to that template file (singular.php) to display content on single pages. It seems like The Events Calendar doesn’t do that. It falls back to index.php (used to display archive pages, and singular pages if no singular page templates exist) if page.php is missing, which is why you get the archive view on single events. It should (in my opinion) try to use singular.php before loading index.php, since that would better match the behavior of WordPress itself.

    You can fix this by creating a child theme, and adding a page.php file to it with the following code:

    <?php include( locate_template( 'singular.php' ) ); ?>

    Let me know how it goes.

    — Anders

    • This reply was modified 4 years, 8 months ago by Anders Norén.
    Thread Starter caldoverde

    (@caldoverde)

    @anlino Anders thank you! You’re a life saver! That’s given me my events back.

    But also it’s now defaulting to the singular page display for the summary events listings instead of the archive style. I would like it to use the archive listing to be consistent with the rest of the site and because the individual events display is horrid and I can’t seem to get the images to display any larger than the in-line thumbnail. Is there a simple line of php I can add to the child theme functions to get it to do that or is this something I need to take up with The Events Calendar people?

    Also, I would like the featured image of the events to display as it does in the posts full width across the top of the content. Again, is there some simple code I can add to either the theme or plugin files for that?

    (My coding knowledge is restricted to html/css, though I can more or less find my way around php files and make edits in the right places.)

    Thread Starter caldoverde

    (@caldoverde)

    I also noticed another couple of glitches following the update which I missed in the panic about the disappearing events.

    The summary blog posts page (Latest Posts) no longer has the facility at the bottom of the page to go to the next page(s) of posts, rendering them effectively inaccessible.

    The social media menu icons are not displaying below the site title and tagline. I checked everything is as it should be in the child theme customiser and it’s all there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Events display broken after update’ is closed to new replies.