Home › Forums › Calendar Products › Events Calendar PRO › Event description includes code from plugin
- This topic has 11 replies, 2 voices, and was last updated 11 years, 6 months ago by
Brian.
-
AuthorPosts
-
September 23, 2014 at 2:44 pm #762442
Webmaster
ParticipantI have noticed that the event descriptions include the shortcode from the visual composer plugin we are using when I view the calendar in export or iCalendar feed. Is there a workaround? I often use the added features of the composer to design the individual event page on the calendar.
September 24, 2014 at 6:39 am #763731Webmaster
ParticipantHere is an example when I select to add an event to Google calendar as well:
http://screencast.com/t/pMiIw4DEjwkSeptember 24, 2014 at 7:53 am #763885Brian
MemberHello,
I can help you out with this.
Thanks for sending the screenshot. I see what you mean about the html tags being included in the description.
Try adding this coding to your theme’s functions.php to clean it up:
https://gist.github.com/jesseeproductions/fc7787cd5f4e73f39da5#file-ecp-google-cal-remove-tags
I added that to a dev site and it removed all the tags.
Let me know if that works for you.
September 24, 2014 at 8:05 am #763916Webmaster
ParticipantI assume this will clean up all the code, even if it is iCal?
September 24, 2014 at 8:29 am #763999Brian
MemberI tested it out using the same coding you have for your event and the tags do not appear in ical. So it appears that it works there too.
Let me know if you find something different.
Thanks
September 24, 2014 at 1:16 pm #764420Webmaster
ParticipantIf I placed the code accurately, it doesn’t seem to be working. Here is a typical monthly service that can be an example: http://www.gatesofheavenclgi.com/cal/international-night/2014-09-26/
September 24, 2014 at 1:22 pm #764425Webmaster
ParticipantAdding that event to Google Calendar produces cleaner results but with some spacing starting off with a bit of garbled text with the apostrophe. The iCal version leaves the shortcode in altogether.
Example:
Friday Night Evangelical ServiceIt’s joy night and we praise the Lord in several languages (with translation). Start your weekend on the right foot in the house of God. View LiveView live and previously recorded Friday service!September 25, 2014 at 7:30 am #766045Webmaster
ParticipantNo, it is not working. I still see the shortcode in the descriptions.
September 25, 2014 at 7:35 am #766057Brian
MemberHi,
Here is another filter you can use to remove content from the ical feed.
It was used as a fix for removing certain text the ical description that you could modify to remove the exact content that is being added by the Visual Composer Plugin.
You may have to play around with both of those to get all the spacing how you want it and the shortcodes removed.
Let me know if you have some questions or get stuck with it.
Thanks
September 25, 2014 at 11:35 am #766496Webmaster
ParticipantI have been trying the code in the functions file but without success. I am not sure what’s the problem. There is also a _theme_settings/theme-functions.php and I am not sure if it is conflicting or overriding?
September 26, 2014 at 6:26 am #768199Brian
MemberI would not expect _theme_settings/theme-functions.php file to cause the base functions.php file to not work, but there is a chance it could be depending on how the theme works.
Another option is to move over the single-events.php template and place the filters directly in there.
Or to create a one file plugin and place the coding in there too.
I did find another filter and modified it a bit to remove most of the shortcodes.
https://gist.github.com/jesseeproductions/ed1257c1580fddac7700
It got most of them out and that should be a good start for you, to get the rest you may have to add another preg_replace to target those last ones.
http://php.net/manual/en/function.preg-replace.php
Let me know if you get stuck, but for the most part we are going to have to leave this customization up to you from here.
Thanks
October 17, 2014 at 7:26 am #815842Brian
MemberSince I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Event description includes code from plugin’ is closed to new replies.
