Title: table css broken?
Last modified: August 20, 2016

---

# table css broken?

 *  Resolved [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * (@capecodvalet)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/table-css-broken/)
 * Not sure when this happened in the plugin, but it seems now that events are wrapped
   with DIV id “event_wrap1” instead of “event_wrap”, which broke my custom CSS 
   file (and also the default icallist CSS file).
 * [http://wordpress.org/extend/plugins/amr-ical-events-list/](http://wordpress.org/extend/plugins/amr-ical-events-list/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/table-css-broken/#post-3313202)
 * really ?
 * not happening here on test/demo site. I just checked a bunch of them:
    [http://test.icalevents.com/agenda/musicbandagenda/](http://test.icalevents.com/agenda/musicbandagenda/)
   [http://test.icalevents.com/large-box-calendar/largecalendar/](http://test.icalevents.com/large-box-calendar/largecalendar/)
   [http://test.icalevents.com/large-box-calendar/multi-month-availability/](http://test.icalevents.com/large-box-calendar/multi-month-availability/)
   [http://test.icalevents.com/large-box-calendar/weeks/](http://test.icalevents.com/large-box-calendar/weeks/)
 * firebug inspect shows still using events_wrap ?
 *  Thread Starter [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * (@capecodvalet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/table-css-broken/#post-3313203)
 * Hmmm… Sure seems like it…. Maybe I have something wonky in my configuration?
 * Site is [http://thecatbirds.net/dates](http://thecatbirds.net/dates)
 * Happy to give you any more info you need!
 * – Fred.
 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-css-broken/#post-3313204)
 * Hi Fred, sorry things got bit hectic here.
 * I finally tracked it down to where the code allows for multiple shortcodes on
   a page (Have to have different id’s then, else html will not validate. )
 * Code will add a number to the id, if it detects that it is NOT the first use 
   of the shortcode. So somehow it thinks that that instance of the shortcoe that
   you have is NOT the first time the shortcode has been used. (Because the global
   amr_icalno has been set). So on my pages there are no numbers in the div id because
   the shortcode is either the first or the only one on the page.
 * See
    line 2045 in amr-ical-events-list-main.php
 *     ```
       function amr_get_id_for_shortcode () {  // allows for the possibility of multiple shortcodes in one page.
       global $amr_icalno;
   
       	if (!(isset($amr_icalno))) $amr_icalno = 0;
       	else $amr_icalno= $amr_icalno + 1;
   
       	if ($amr_icalno	== 0) $idnum= '';
       	else $idnum = $amr_icalno;
       	$id = ' id="events_wrap'.$idnum.'" ';
   
       	return ($id);
       }
       ```
   
 * Do you have custom code anywhere ?
 *  Thread Starter [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * (@capecodvalet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-css-broken/#post-3313207)
 * Hmmm … I don’t think I have custom code anywhere. I am using a custom format,
   but used the plugin to create it.
 * The shortcode I use on the page is:
    [iCal ics=”[http://chandlertravis.com/?gigs_calendar_ical&event=catbirds&#8221](http://chandlertravis.com/?gigs_calendar_ical&event=catbirds&#8221);
   listtype=”14″]
 * And that’s it for page data.
 * And I don’t see another occurrence of “event-wrap” anywhere in the page source(
   [http://thecatbirds.net/dates/](http://thecatbirds.net/dates/)) other than in`
   <div id="event-wrap1" >` around my events.
 * Weird – anything you can think of for me to look at/for?
 * (oh, and no problem with lag between messages – for one, I’ve been under the 
   weather, but also I have the workaround of adding event-wrap1 to my CSS)
 * Thanks!
 * – Fred.
 *  Thread Starter [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * (@capecodvalet)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/table-css-broken/#post-3313208)
 * Well … it seems to have “fixed” itself somehow! I wonder if it was a theme or
   plugin compatibility issue.
 * Sorry about this!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘table css broken?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-ical-events-list_f5f4f4.svg)
 * [amr ical events lists](https://wordpress.org/plugins/amr-ical-events-list/)
 * [Support Threads](https://wordpress.org/support/plugin/amr-ical-events-list/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-ical-events-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-ical-events-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-ical-events-list/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * 5 replies
 * 2 participants
 * Last reply from: [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/table-css-broken/#post-3313208)
 * Status: resolved