• Hello everybody,

    Who knows php, Please help. I want that Calendar title was month and year (November 2007) like he make below, but what is below delete. ?? in code it is much more simple:

    now it is in general-template.php

    echo '<table id="wp-calendar" summary="' . __('Calendar') . '">
    	<caption>' . $wp_locale->get_month($thismonth) . ' ' . date('Y', $unixmonth) . '</caption>
    	<thead>
    	<tr>';

    and i would like it aperas in Calendar title (file widgets.php)

    function wp_widget_calendar($args) {
    	extract($args);
    	$options = get_option('widget_calendar');
    	$title = $options['title'];
    	if ( empty($title) )
    		$title = '&nbsp;';
    	echo $before_widget . $before_title . $title . $after_title;
    	echo '<div id="calendar_wrap">';
    	get_calendar();
    	echo '</div>';

    so to have ' . $wp_locale->get_month($thismonth) . ' ' . date('Y', $unixmonth) . ' here $title = '&nbsp;';

Viewing 2 replies - 1 through 2 (of 2 total)
  • If I’m understanding what you want, do you want a calendar widget that has the month and year as a header rather than as a caption that the built-in widget does?

    I’ve reworked the calendar code into a widget to make the WordPress calendar work better as a widget, to match the usual sidebar formatting.

    If you’d like, drop me an e-mail at [email protected], and I’ll send you the widget.

    Thread Starter vengro

    (@vengro)

    Thank you!

    wrote to you already.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calendar Widget’ is closed to new replies.