Joel Moir

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Ticket not showing date / time of event #1556727
    Joel Moir
    Participant

    Hi Jaime,

    I’m wanting just the basic event details on the actual ticket that gets emailed to the customer after purchase. I’m really surprised it’s not on there by default. The ticket doesn’t have details about what the event is, not even the date.

    in reply to: Another YOAST related issue #1385069
    Joel Moir
    Participant

    Hi Victor,

    If I switch to the 2017 theme, the php change works.

    In terms of it stopping all of a sudden, it’s only something that I’ve implemented a few days ago, and it didn’t work – the title was blank before the | separator.

    It must be a divi issue. I have to work out if I have the energy to begin the troubleshooting process, as I’m a recovering IT Consultant who burnt out after nearly 20 years of being in the industry. As a musician our website is super important, but have to decide whether that particular issue is worth a couple of days of work.

    I’ll most likely take the plunge, I pretty much can’t help it, but at least now I know that with another theme it works ok, and it gives me somewhere to start.

    If you have any suggestions on the divi theme specifically, I’ll happily take them on board, otherwise I’ll just update you as I go with my troubleshooting.

    Thanks again for your help

    in reply to: Another YOAST related issue #1383203
    Joel Moir
    Participant

    That code didn’t come out properly… Here it is again.

    /*
    Plugin Name: The Events Calendar Remove Events Archive from Yoast Page Title
    Plugin URI: https://gist.github.com/geoffgraham/041c048aca979de714273314ae039ce7
    Description: The Events Calendar – Yoast SEO – Prevent Yoast from changing Event Title Tags for Event Views (Month, List, Etc,)
    */
    add_action( ‘pre_get_posts’, ‘tribe_remove_wpseo_title_rewrite’, 20 );
    function tribe_remove_wpseo_title_rewrite() {
    if ( class_exists( ‘Tribe__Events__Main’ ) && class_exists( ‘Tribe__Events__Pro__Main’ ) ) {
    if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) {
    $wpseo_front = WPSEO_Frontend::get_instance();
    remove_filter( ‘wp_title’, array( $wpseo_front, ‘title’ ), 15 );
    remove_filter( ‘pre_get_document_title’, array( $wpseo_front, ‘title’ ), 15 );
    }
    } elseif ( class_exists( ‘Tribe__Events__Main’ ) && !class_exists( ‘Tribe__Events__Pro__Main’ ) ) {
    if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() ) {
    $wpseo_front = WPSEO_Frontend::get_instance();
    remove_filter( ‘wp_title’, array( $wpseo_front, ‘title’ ), 15 );
    remove_filter( ‘pre_get_document_title’, array( $wpseo_front, ‘title’ ), 15 );
    }
    }
    };

    add_filter( ‘tribe_events_title_tag’, function( $default_title ) {
    if ( ! tribe_is_month() ) {
    return $default_title;
    }

    return ‘MONTH VIEW CUSTOM TITLE!’;
    } );

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