• Resolved cookgardensew

    (@cookgardensew)


    Good morning! I have updated my test site to the 3.0 beta and I’m seeing a number of issues. Any help to point me in the right direction would be much appreciated. Thanks!

    My test site is here.

    We are using the plugin to pull events into several different lists, displaying them in two different widgets.

    Problems with the first widget/calendar (labeled “Mass Today”)
    – Calendar is displayed above the widget rather than between the header and the Text below it.
    – The calendar now displays nav and day label, and as part of the unordered list styling, a bullet. I am assuming I can remove the nav and day label via CSS, though I think we must have done this through settings in 2.0.
    – The content shortcode [if-first] must no longer function. On days with only one event, the event only shows where the code states [if-not-first].
    – the [location] shortcode seems to be listing the location twice.

    The second widget/calendar (labeled “Upcoming Parish Events”) has less trouble. It does appear inside the widget where it belongs.
    – We do see the nav and day label here also.

    I am also seeing general CSS issues – mainly a 40px left margin that isn’t affecting any other objects on the page aside from the calendars.

    Any help is appreciated. Thanks for putting your time and effort into this awesome plugin! ??

    https://www.ads-software.com/plugins/google-calendar-events/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    Hi there

    thanks for trying out the beta

    I think I have updated some CSS rules recently, you can try redownloading the beta https://www.dropbox.com/s/x7pxhmwo905kdtb/simple-calendar-3.0.0-beta1.zip?dl=1 (adjusted margins, removed bullets)

    will likely add a few more ‘default’ styles that can make the calendar adapt on most themes, but at the same time have some characteristics for common sense

    currently, events and calendars do not support templating – likely this would be a future feature but it takes a bit of work to make it happen and I don’t think can make it for the upcoming release. Therefore a lot of people hacked the calendars CSS but that’s not very portable and future proof either (also, everyone wants different styles). Another possible feature would be to set some preferences via WordPress Customizer (for example light/dark theme), since templating wouldn’t be very accessible to non-designers/developers.

    As for the widget not appearing in the widget area… That is strange. The calendar widget has no text input, how are you displaying ‘Today’s Readings from the USCCB’ ? From the HTML, it looks like that is a separate text widget.

    Thread Starter cookgardensew

    (@cookgardensew)

    Thanks! I will update to the newest beta.

    As for the widget with the formatting/display issue – it is a text widget with the shortcode for the calendar followed by some paragraph text and a link. It looks like this:

    [calendar id=”357″]

    Today’s Readings from the USCCB

    It functioned fine on the 2.0 code, though maybe using the shortcode inside the widget isn’t functional in the new code?

    Thread Starter cookgardensew

    (@cookgardensew)

    Sorry – that should have been:

    [calendar id="357"]
    <br>
    <a href="https://www.usccb.org/bible/readings/index.cfm" target="_blank">Today's Readings from the USCCB</a>
    Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    I see – perhaps the update contains something that should address the issue (something related on how shortcode outputs the html)

    however, the shortcode is thought primarily to work in post content; you are not using the widget calendar but trying to print a shortcode inside a text widget

    it is probably not the best practice, not just with this plugin

    Thread Starter cookgardensew

    (@cookgardensew)

    Thanks Fulvio. I see what you are saying about using the shortcode in the text widget. I switched that calendar into the Simple Calendar Widget and it displays correctly now.

    I also updated to the newest beta and that corrected the margins and duplicated locations.

    I only see two more things:

    1) when the description is listed it breaks the text to a new line. It doesn’t do this for the other fields. It looks like the fields that work correctly are spans, while the description field shows as a div.

    2) on the main page of the plugin, I don’t have any calendars listed, though it indicates all (4) / published (4) at the top. After some fiddling it refreshes to show the most recently created one, with the following error in the Events Source field:

    Fatal error: Out of memory (allocated 68943872) (tried to allocate 256 bytes) in /homepages/16/d573355131/htdocs/clickandbuilds/WordPress/STP_Test/wp-includes/query.php on line 1816

    Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    1. It has to be a <div> because it might contain HTML block elements.

    2. Did you had actual existing calendars (even from 2.x version)?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘(3.0 Beta) CSS and Formatting Issues’ is closed to new replies.