Plugin: EventPress

Join this plugin group to follow comments, support topics and reviews.

Move Register/Unregister Button to Event Description Area (3 posts)

Started 11 months, 2 weeks ago by: seelkat

  • Profile picture of seelkat seelkat said 11 months, 2 weeks ago:

    Hi, I would like to move the Register/Unregister to come up with the event description section, rather than in the header. How might I accomplish this? Is there a bit of code I can copy over into the visual editor? Sorry if this is obvious, I am just getting starting with WP/BP & I am a newbie to coding!

    BTW. Thank you for a great plugin. I’ve looked at every event plugin for BP & this one is by FAR the best one for online events.

    Thanks!

  • Profile picture of kunalb kunalb said 11 months, 2 weeks ago:

    Hi

    Thank! You could try changing line 81 of eventpress/controllers/register.php:
    add_action( 'bpcp_ep_event_loop_action_meta', Array( &$ep_views['template'], 'bp_register_button' ) );
    to
    add_action( 'bpcp_ep_event_single_before_home', Array( &$ep_views['template'], 'bp_register_button' ) );

    This isn’t exactly the best method as it won’t survive a plugin update, but is the simplest way to go about it.

    If you’re feeling comfortable with WP/BP, try removing the action from bpcp_ep..._meta using http://codex.wordpress.org/Function_Reference/remove_action and adding it back in to the other hook by add_action in your theme’s functions.php, etc.

    PS I don’t log into WP/BP forums often—you’ll get a faster response on the google group for this plugin (https://groups.google.com/forum/#!forum/eventpress)—as I’ve mentioned in the readme.txt.

  • Profile picture of kunalb kunalb said 11 months, 2 weeks ago:

    er, thanks***!