Support

Home Forums Event Espresso Premium Is there a way to get the registration form in the side bar of every page?

Is there a way to get the registration form in the side bar of every page?

Posted: August 2, 2012 at 9:58 am

Viewing 2 reply threads


Chris Rundell

August 2, 2012 at 9:58 am

Client just asked if we could put the registration form in the side bar of every page in the WordPress site except for the Registration form page. Is that possible?


Josh

  • Support Staff

August 2, 2012 at 12:46 pm

Hi Chris,

It should be possible. One way to do it would be to hardcode a shortcode right into the sidebar template, but here’s a more flexible solution:

The first step would be to add shortcode support to the text widget. Either create your own custom functionality plugin, or drop this function into the theme’s functions file:

if (!is_admin())
  add_filter('widget_text', 'do_shortcode', 11);

The place the [ESPRESSO_REG_FORM] or [ESPRESSO_REG_PAGE] shortcode into the text widget. Be sure to use the event ID like [ESPRESSO_REG_FORM event_id=1]

Then install the widget logic plugin and write a conditional to exclude the registration form from the page(s) that have event shortcodes like [ESPRESSO_EVENTS], [ESPRESSO_TXN_PAGE], [ESPRESSO_PAYMENTS] and [SINGLE_EVENTS].

If your theme has a page template that displays the page content without a sidebar, this could be used instead of the widget logic.


Chris Rundell

August 2, 2012 at 12:57 pm

Perfect. Thank you!

Viewing 2 reply threads

The support post ‘Is there a way to get the registration form in the side bar of every 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.

Event Espresso