WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
Disable month/date link in widget (1 post)

  1. padraigbeirne
    Member
    Posted 9 months ago #

    Hi guys,

    I would like to have the month/date (for each event in the sidebar widget) static. Is there any way I can disable the link to the event on the month/date only?

    Here is what I tried in agenda-widget.php but didn't work.

    <?php foreach( $dates as $timestamp => $date_info ): ?>
    <li class="ai1ec-date <?php if( isset( $date_info['today'] ) && $date_info['today'] ) echo 'ai1ec-today'; ?>">
    <h3 class="ai1ec-date-title">
    <div class="ai1ec-month"><?php echo date_i18n( 'M', $timestamp, true ); ?></div>
    <div class="ai1ec-day"><?php echo date_i18n( 'j', $timestamp, true ); ?></div>
    <div class="ai1ec-weekday"><?php echo date_i18n( 'D', $timestamp, true ); ?></div>
    <?php if ( $show_year_in_agenda_dates ): ?>
    <div class="ai1ec-year"><?php echo date_i18n( 'Y', $timestamp, true ) ?></div>
    <?php endif; ?>	</h3>

    http://wordpress.org/plugins/all-in-one-event-calendar/

Reply

You must log in to post.

About this Plugin

About this Topic