WordPress.org

Ready to get started?Download WordPress

Forums

Events
Widget disobeys before_title and after_title (2 posts)

  1. philipjohn
    Member
    Posted 2 years ago #

    It looks like the widget disobeys the before_title and after_title prescribed by the active theme.

    See screenshot: http://screencast.com/t/ySIJbcByi

    I've checked this in Thesis and then verified in Twenty Eleven on v3.3.1

    Cheers,
    Phil

    http://wordpress.org/extend/plugins/wp-events/

  2. philipjohn
    Member
    Posted 2 years ago #

    For now, I'm using this code in my functions.php to manually override the tags to what I know my theme uses:

    /**
     * Override the default heading tag in the events plugin widget
     *
     * See http://wordpress.org/support/topic/plugin-events-widget-disobeys-before_title-and-after_title?replies=1
     */
    function t21cl_override_events_widget(){
    	if ($template = get_option('events_template')){
    		$template['sidebar_h_template'] = '<h3>'.__('Highlighted events', 'wpevents').'</h3><ul>';
    		update_option('events_template', $template);
    	}
    }
    add_action('widgets.php', 't21cl_override_events_widget');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags