• Resolved ZoBabe

    (@zobabe)


    The default behavior is to strip html from the information that is exported to google calendar, but we really want to have the html included (such as a link to the event site).
    How to disable the HTML stripping?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darian

    (@d0153)

    Hi @zobabe

    Thanks for reaching out.

    Your desired use-case scenario may be possible with some custom coding, but if you decide to give that a try, please note we cannot provide full support for custom implementations like that.

    However, you can try the following snippet and check if that will work for you.

    add_filter( 'tribe_ical_feed_item', 'custom_feed_item_description', 10, 2 ) ;
    
    function custom_feed_item_description( $item, $event_post ) {
    	$item['DESCRIPTION'] = "DESCRIPTION:" . str_replace(array("\r\n", "\r", "\n"), "<br/>",$event_post->post_content);
    	return $item;
    }

    If you’re not familiar with coding, you can use the Code Snippets plugin, which removes the need to add custom snippets to your theme’s functions.php file.

    As always, please test it first on your staging site before applying it to your live site.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable HTML Stripping for Google Calendar Subscribe’ is closed to new replies.