I would like to add a category slug to the body class of the registration cancelled page just like I added it to the checkout and thank you pages. In other words, if someone adds a ticket to their cart then clicks Cancel Registration, the page that loads contains the same header and footer as the Checkout page.
Hmm, the registration cancelled page clears the session.
In the previous examples, we used the session to pull in the details needed for the body class, so clearing the session means we don’t have the details we need in that session. However session is cleared in the_content call, the body_class should be set before that call so you can try:
Note that it’s a replacement function for the one I gave you previously and just does exactly the same as what it previously did, except now it also tries to pull the details on the ‘registration-cancelled’ page.
That did the trick! Thank you for your prompt reply.
Viewing 2 reply threads
The support post ‘How do Iadd a category slug to the body class of the registration cancelled page’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.