• Hello,

    I have place the smallcalendar-widget in my sidebar and designed it using custom CSS. Now when I click on a date on the details page all CSS formattings gets lost because the widget-id now ist “events_wrap1” instead of “events_wrap” as on the startpage. Why?

    Klaus

Viewing 1 replies (of 1 total)
  • Plugin Author anmari

    (@anmari)

    one cannot have more than instance of an id on a page – breaks html validity. So the plugin has an icalendar counter in case there are more than one calendar on a page.

    In the code, the first one starts with ‘0’ (why? I don’t remember that!) and will use ‘events_wrap’. Thereafter it increments by 1 each time to ensure a unique id for each instance.

    There are plenty of css classes too in the html elements, so if you are looking to apply your custom css to all instances, consider a class instead

Viewing 1 replies (of 1 total)
  • The topic ‘events_wrap and events_wrap1’ is closed to new replies.