Home › Forums › Calendar Products › Events Calendar PRO › Changing RSVP to Register
- This topic has 2 replies, 3 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
April 12, 2016 at 12:40 pm #1101543
Li
ParticipantI tried to follow the directions here but when I add to the functions.php file it white screens my website.
Here is my current functions.php file. Where do i add the code?
<?php
/**
* Starts Headway
*
* @package Headway
* @author Clay Griffiths
*//* Prevent direct access to this file */
if ( !defined(‘WP_CONTENT_DIR’) )
die(‘Please do not access this file directly.’);/* Make sure PHP 5.2 or newer is installed and WordPress 3.2 or newer is installed. */
require_once get_template_directory() . ‘/library/common/compatibility-checks.php’;/* Load Headway! */
require_once get_template_directory() . ‘/library/common/functions.php’;
require_once get_template_directory() . ‘/library/common/application.php’;Headway::init();
/**
* Allows visitors to page forward/backwards in any direction within month view
* an “infinite” number of times (ie, outwith the populated range of months).
*/if ( class_exists( ‘Tribe__Events__Main’ ) ) {
class ContinualMonthViewPagination {
public function __construct() {
add_filter( ‘tribe_events_the_next_month_link’, array( $this, ‘next_month’ ) );
add_filter( ‘tribe_events_the_previous_month_link’, array( $this, ‘previous_month’ ) );
}public function next_month() {
$url = tribe_get_next_month_link();
$text = tribe_get_next_month_text();
$date = Tribe__Events__Main::instance()->nextMonth( tribe_get_month_view_date() );
return ‘‘ . $text . ‘ <span>»</span>‘;
}public function previous_month() {
$url = tribe_get_previous_month_link();
$text = tribe_get_previous_month_text();
$date = Tribe__Events__Main::instance()->previousMonth( tribe_get_month_view_date() );
return ‘<span>«</span> ‘ . $text . ‘ ‘;
}
}new ContinualMonthViewPagination;
}
April 12, 2016 at 5:36 pm #1101680Geoff B.
MemberGood evening LiĀ and welcome back!
Thank you for reaching out to us.
We are sorry to hear about your site going blank.
I would love to help you with this topic.You can add the piece of code from the link pretty much anywhere in the functions.php file as long as:
- You are not copying the opening PHP tag (it’s already in your functions.php file)
- You are not pasting the code in the middle of a function or conditional (above the first if should be fine)
- You are using the code found at the bottom of the page in the link you shared (not the previous snippets in the page)
Let me know how that goes.
Best regards,
Geoff B.April 27, 2016 at 9:35 am #1107759Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Changing RSVP to Register’ is closed to new replies.
