Mathew

Forum Replies Created

Viewing 15 posts - 166 through 180 (of 264 total)
  • Author
    Posts
  • in reply to: DB Error Unknown Column – post_parent #1296022
    Mathew
    Participant

    This reply is private.

    in reply to: Google Structured Data and Time Offset #1296013
    Mathew
    Participant

    After implementing Nico’s custom function, it had a negative effect on Google search results. I tweaked the function a bit and after a week, search results are now correct.

    Here’s what I came up with. The key is, and pass it along, using UTC with no offset.

    function tribe_modify_json_ld_event_dates ( $_data, $args, $event ) {

    $_data->startDate = date_create( tribe_get_start_date( $event->ID, true, Tribe__Date_Utils::DBDATETIMEFORMAT ) )->setTimezone( new DateTimeZone( 'UTC' ) )->format( 'c' );
    $_data->endDate = date_create( tribe_get_end_date( $event->ID, true, Tribe__Date_Utils::DBDATETIMEFORMAT ) )->setTimezone( new DateTimeZone( 'UTC' ) )->format( 'c' );

    return $_data;
    }
    add_filter( 'tribe_json_ld_event_object','tribe_modify_json_ld_event_dates', 10, 3 );

    in reply to: We need to change the Word "Venue" to "Location". #1295010
    Mathew
    Participant

    Steven,

    Have a look at this article. It should help you achieve the change.

    Hope this helps.

    in reply to: Error in log #1294437
    Mathew
    Participant

    I am seeing the same error and have opened a ticket as well. I found a few others who have the same issue by searching the forums for post_parent. Here’s one that’s insightful. Hopefully it can gain some attention, albeit difficult to troubleshoot when it’s not reproducible on demand.

    in reply to: DB Error Unknown Column – post_parent #1293071
    Mathew
    Participant

    This reply is private.

    in reply to: Stray Comma #1291092
    Mathew
    Participant

    Helen,

    The good news is that it’s not a conflict with your theme or third-party plugins. The stray comma is there by design.

    There’s an assumption that venue details will contain other metadata, such as an address. So the TEC list template places a separator between these values.

    The separator is set on line 56 of the-events-calendar/src/views/list/single-event.php.

    You will need to override the list template with customization to your liking. Please note that simply removing the separator from the template will have an effect on venues that do need the separation between values.

    There are ways to get around this with the isset function. This would require some customization around the tribe_get_venue_details within the list view template.

    So that your customization efforts survive a product update, it is best to follow the Themer’s Guide. It’s a great starting point for this type of customization.

    Hope this helps gets you closer to a solution.

    in reply to: Avada and TEC List Widget JSON-LD Issue #1290225
    Mathew
    Participant

    Update.

    The issue stems from a change made in version 5.1.6 of Avada in an attempt to deal with excerpts and shortcodes, essentially overriding the filters in TEC’s general.php.

    While the change had the desired effect, it broke other critical areas.

    I have highlighted the culprit code within their support tier and it will be addressed in a upcoming hotfix.

    in reply to: Google Structured Data and Time Offset #1290075
    Mathew
    Participant

    Neal,

    I’ve tried all the various settings in TEC to no avail. However, I found this little gem and it resolved the issue. Thanks @nicosantos for the snippet!

    As I mentioned, the issue is present on the TEC demo site.

    in reply to: Add Event Website URL to Tooltip #1272426
    Mathew
    Participant

    Kevin,

    You’re so close to having all the pieces to the puzzle. From what Shelby mentioned, to Gustavo’s GIST, it’s a matter of putting it all together.

    Here’s what I have used for a customer.

    * If you are using Gustavo’s GIST, then inject lines 3-9 of the following into it. If your not using it, then insert the entire function into your custom functions.php.

    
    function additional_tooltip_fields( $json, $event, $additional ){
    	//important to deal with empty values
    	$json['event_website'] = '';
    	
    	// make the magic happen
    	$url = tribe_get_event_website_link( $event );
    	if ( $url ) {
    		$json['event_website'] = tribe_get_event_website_url( $url );
    	}
    		
    	return $json;
    }
    add_filter( 'tribe_events_template_data_array', 'additional_tooltip_fields', 10, 3 );
    

    Now edit tooltips.php and insert the above code in between the script divs where you want it positioned and displayed. If you are using the latest version of TEC, there’s now two scripts in tooltips.php. Add this to both script sections.

    Hope this helps.

    in reply to: Add Event Website URL to Tooltip #1272425
    Mathew
    Participant

    The syntax highlighter played havoc with the brackets. Here’s an image of what the tooltips.php edit should look like.

    in reply to: Add Event Website URL to Tooltip #1272419
    Mathew
    Participant

    Kevin,

    You’re so close to having all the pieces to the puzzle. From what Shelby mentioned, to Gustavo’s GIST, it’s a matter of putting it all together.

    Here’s what I have used for a customer.

    * If you are using Gustavo’s GIST, then inject lines 3-9 of the following into it. If your not using it, then insert the entire function into your custom functions.php.


    function additional_tooltip_fields( $json, $event, $additional ){
    //important to deal with empty values
    $json['event_website'] = '';

    // make the magic happen
    $url = tribe_get_event_website_link( $event );
    if ( $url ) {
    $json['event_website'] = tribe_get_event_website_url( $url );
    }

    return $json;
    }
    add_filter( 'tribe_events_template_data_array', 'additional_tooltip_fields', 10, 3 );

    Now edit tooltips.php and insert the following in between the script divs where you want it positioned and displayed. If you are using the latest version of TEC, there’s now two scripts in tooltips.php. Add this to both script sections.


    [[ if(event_website.length) { ]]
    <div class="tribe-events-event-url">Event Website: View Website</div>
    [[ } ]]

    Hope this helps.

    in reply to: Shortcodes in event-excerpt #1271772
    Mathew
    Participant

    There’s two filters that come into play. One allows it and one removes it. Here’s an article on both.

    Hope this helps.

    Mathew
    Participant

    This is an issue that I have noticed too. A work-around is to install Modern Tribe’s Advanced Post Manager plugin and the issue will resolve itself.

    Alternatively you can also download/install the plugin from the Events admin screen. Near the top there’s a “PSSST! Looking for filters?” link.

    TEC Support – As for the root cause, if you compare the CSS when the APM plugin is active to when it’s not, you will see why the title column is squished. Yes you can adjust the column width with custom functions, but it should be addressed in another manner.

    Hope this helps.

    in reply to: remove fusion-sharing-box #1269243
    Mathew
    Participant

    Jean,

    There is a setting in Avada that controls this. It’s documented here on Theme Fusion’s support site.

    Hope this helps.

    in reply to: Attaching a tel link to phone number #1262378
    Mathew
    Participant

    Danna,

    There’s a knowledgebase article that my provide the solution you are looking for.

    Hope this helps.

Viewing 15 posts - 166 through 180 (of 264 total)