Benjamin

Forum Replies Created

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • in reply to: Fix for Next Events / More Events no longer working #1058915
    Benjamin
    Participant

    Thanks George, that did the trick!

    in reply to: Fix for Next Events / More Events no longer working #1056912
    Benjamin
    Participant

    Here’s a link to the code from my functions file:

    https://gist.github.com/anonymous/b58649144f442dde6c03

    Thanks for taking a look!

    in reply to: Fix for Next Events / More Events no longer working #1056288
    Benjamin
    Participant

    George,

    It has something to do with these lines:

    ‘Previous %s’ => ‘Older %s’,
    ‘Next %s’ => ‘More %s’,

    Because when I remove it, it works.

    When I leave that line in the code, my browser throws this error:

    Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home3/ab58849/public_html/wp-content/themes/fropo/functions.php on line 29

    in reply to: Fix for Next Events / More Events no longer working #1056253
    Benjamin
    Participant

    George, thank you for your quick response!

    The first step (changing Events to Classes) works for me, but when I added the snippet of code you’ve included below that I get a syntax error.

    Here’s everything as I currently have it:

    add_filter( ‘tribe_event_label_singular’, ‘event_display_name’ );
    function event_display_name() {
    return ‘Class’;
    }

    add_filter( ‘tribe_event_label_plural’, ‘event_display_name_plural’ );
    function event_display_name_plural() {
    return ‘Classes’;
    }

    // Change next classes to more classes

    function tribe_custom_theme_text( $translations, $text, $domain ) {

    $custom_text = array(
    ‘Previous %s’ => ‘Older %s’,
    ‘Next %s’ => ‘More %s’,
    );

    if ( array_key_exists( $text, $custom_text ) ) {
    $text = $custom_text[ $text ];
    }

    return $text;
    }

    add_filter( ‘gettext’, ‘tribe_custom_theme_text’, 20, 3 );

    in reply to: Missing Tickets on Single Events Page #973551
    Benjamin
    Participant

    That did it.

    Thanks!

    in reply to: Add Calendar to Page #942868
    Benjamin
    Participant

    A couple more example customizations of varying types would help immensely. Right now the example customization is how to add the event organizer to the events calendar, so that covers how to add/display an existing field.

    But one can easily imagine a couple common customizations which would be quite different:

    1. Adding a calendar to a page

    2. Changing the name of a field

    I think adding these examples would really help the guide. Again, PHP is not my strong suit, but I imagine you have plenty of customers like me who are well versed in html/css and willing to tackle a “theme,” but could use some additional guidance here.

    Thank you for your follow up!

    All the best,

    Ben

    in reply to: Add Calendar to Page #942205
    Benjamin
    Participant

    Well it took me 4 hours, but I got it working!

    I created the “child theme” file as the Themer’s Guider stipulated in the following location:

    wp-content/themes/your-theme/tribe-events/default-template.php

    And then I edited the default-template.php file adding this (with some extra rules specific to my site) beneath the calendar’s code:

    <?php query_posts(‘pagename=home’); ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php endwhile; else : ?>
    <?php _e( ‘Sorry, no posts matched your criteria.’ ); ?>
    <?php endif; ?>

    Note (for anyone else trying to do this): My page was called ‘home’ – this needs to be changed to your respective page name.

    Also, for some reason I had to reset the query just before the footer or it did not display. I put this code just before the get footer:

    <?php wp_reset_query(); ?>

    This solution places a single page’s content above/below the Events Calendar. The ideal solution would add the calendar to a page (so you could have the calendar on multiple pages), but for my purposes on this site having the page in the calendar (so to speak) worked fine.

    Barry,

    While you’re investigating options, a better Themer’s Guide would have been super helpful. I felt like I spent a lot of time just figuring out what files did what. But admittedly I’m a php hack.

    All the best,

    Ben

    Benjamin
    Participant

    Josh, I’d like to do the same thing Brown mentioned. Specifically, I’m customizing a Divi theme and would like to use Page Builder to add a section with a contact form below the calendar.

    I’ve used Event Rocket for posting calendar widgets before, but it does not support adding the entire calendar to a page. The only thing Event Rocket does for the entire calendar is add “Main Events Page” to the list of pages in Reading Settings, so you can set it as the homepage.

    But importantly, Barry announced that they’re dropping support for the plug-in and encouraged folks to stop using it:

    https://wordpress.org/support/topic/using-the-event_rocket_calendar-shortcode-read-this

    Please advise.

Viewing 8 posts - 16 through 23 (of 23 total)