• Resolved anilchadh

    (@anilchadh)


    Hi,

    Is there are way in the Calendar List View to have a ‘Register’ button which sends you to the Event Detail page and positions you to the ‘Register’ pulldown so that you can register quickly without having to hit the ‘Find out more »’ link to take you to the Event Detail Page and then finding the ‘Register’ pulldown to register?

    I have checked out your page https://roundupwp.com/customize-events-calendar-single-event-templates/ where you use PHP to add a ‘Seats Remaining’ option and would think you could add the code there to add a button but I don’t really know any PHP and would appreciate your help on the matter.

    Thanks

    • This topic was modified 7 years, 8 months ago by anilchadh.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter anilchadh

    (@anilchadh)

    Hi,

    I have just found your extension:

    https://roundupwp.com/codex/add-registration-form-list-view/

    which actually brings up the ‘Register’ pulldown which enables you to actually register using the Registration Form directly from the List View.

    This is great but I don’t want them to register from the List View directly but just want a button that takes them to the Event Detail Page where they can see the full event details and register from there.

    Thanks

    Plugin Author roundupwp

    (@roundupwp)

    Hey anilchadh,

    In that case, you would just need something like this PHP added to your functions.php file for your theme:

    function ru_custom_button() {
    
    	echo '<button><a href="'.get_the_permalink().'">Register</a></button>';
    
    }
    add_action( 'tribe_events_before_the_meta', 'ru_custom_button' );

    Just be careful when editing your theme’s functions.php file as an error can crash your site.

    This will add a button that links to the event detail page like you were asking about. Hopefully it helps!

    – Craig

    Plugin Author roundupwp

    (@roundupwp)

    Hello again,

    This thread has been quiet for awhile so I’m going to mark it resolved. Let me know if you have any more questions.

    – Craig

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Register Button On Calendar List View’ is closed to new replies.