html in title with comments on custom post
-
I use All In One Event Calendar.
The features available with Customizr make it ideal for this plugin.
Love the theme!Ran across this issues today:
Comments on Events added by AI1EC showed html in the title of the Event. An example is at: https://eventscentral.co/blog/event/thmcec-22nd-annual-border-poker-run/?instance_id=3680A friend gave me the info below. I commented out the line in html.php in AI1EC and the issue is fixed on another site.
Is there any way to do “fix” this in functions.php in my child theme or to address this in Customizr?
Info provided:
HTML in the title.
If the theme uses the function the_title() change it to the_title_attribute().
If it uses get_the_title(), then you pretty much need to change ai1ec or get the theme authors to fix it.To change ai1ec, edit …../all-in-one-event-calendar/lib/http/response/render/strategy/html.php and comment out a line.
The line to comment out is line 99:
$title = ‘<span class=”summary”>’ . $title . ‘</span>’;BTW: This would be broken if you weren’t using Ai1ec but were using the WP-Typography plugin, as it does similar things with HTML in the title.
- The topic ‘html in title with comments on custom post’ is closed to new replies.