Removing "Event Category" from the event meta info box

Home Forums Calendar Products Events Calendar PRO Removing "Event Category" from the event meta info box

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #109310
    sciotomile
    Participant

    How would I go about removing/hiding the “event category” field from the meta info box that displays under the event description?
    http://www.sciotomile.com/event-listing/red-white-boom/

    #109459
    Barry
    Member

    Hi – great question. Can you try adding this snippet to your theme’s functions.php file and see if that helps?

    #109639
    sciotomile
    Participant

    Sorry this did not resolve the issue… I added the code to my theme’s functions, but the event category still displays in the green box.

    http://www.sciotomile.com/event-listing/jazz-rib-fest/

    #109908
    Barry
    Member

    OK, I’m not sure why it’s working for you, it certainly should (and a colleague confirmed independently that it works for them). Perhaps you could share your theme’s functions.php file – via Pastebin or Gist – in case there is some problem stemming from its positioning or something of that order?

    (And if you are using caching, note that you may be seeing the cached result of a previous query and may need to clear the cache for this to take effect.)

    Thanks!

    #110221
    sciotomile
    Participant

    I don’t think it is a caching issue as I’ve added new events to the calendar and they still show the event category in the meta box. Here’s my functions file: http://pastebin.com/QuM60dNV

    The code to remove/hide the event category begins on line 670

    #110745
    Barry
    Member

    Hmm, I’m afraid in that case I can’t really assist you much further on this one – the code looks correct (and – though it generates some unrelated notices and warnings – if I use the entire file you shared to replace the default Twenty Eleven functions.php it works in that scenario, too).

    With that in mind, I suspect something else is at play here in the context of your own installation – but, I’m afraid, we’d need to leave it to you to dive in to this in further detail (you could try our usual steps of switching to an unmodified default theme and deactivating all other plugins – then testing the snippet out in those conditions, for instance).

    Sorry we can’t do more this time round.

    #119717
    Barry
    Member

    I’ll go ahead and close this thread: if we can assist with anything else please don’t hesitate to create a new thread and one of the team will be happy to help 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Removing "Event Category" from the event meta info box’ is closed to new replies.