acleach
Forum Replies Created
-
Forum: Plugins
In reply to: [ICS Calendar] Grid not changing to list on mobileIntriguing. If I resize my desktop browser window, the calendar changes to a list. But on my mobile phone, I can’t trigger that when using “desktop” view. Either the browser is “intelligent” enough to preserve the layout, or my mobile screen is not small enough to trigger the change. I suspect that the browser is actually misreporting the screen size.
Using the mobile theme, the page does attempt to show the list rather the grid, because I get the “Hide past events” link. It must be a theme issue, and it seems likely that my mobile-friendly theme (which it is; Google likes it!) is conflicting with, or just can’t cope with, what’s going on with CSS in the plugin.
Forum: Plugins
In reply to: [ICS Calendar] Grid not changing to list on mobileThanks for looking quickly! You can run the mobile theme on a full-size screen and the desktop theme on a mobile-size screen by using the switcher icon at the bottom of the page. It sets the
fdx_switcherquerystring as shown in the links below.These links should help, and will force the theme used, overriding the sniffing. Unfortunately there’s a
<display:none>inserted from somewhere on the first link. However, link 2 (grid using desktop theme) should presumably degrade on a mobile device to the list view.Grid view using mobile theme: https://eastbourneordinariate.org.uk/calendar-3-2?fdx_switcher=mobile
Grid view using desktop theme: http://eastbourneordinariate.org.uk/calendar-3-2?fdx_switcher=desktopList view using mobile theme: https://eastbourneordinariate.org.uk/calendar-3-2-2?fdx_switcher=mobile
List view using desktop theme: https://eastbourneordinariate.org.uk/calendar-3-2-2?fdx_switcher=desktopForum: Plugins
In reply to: [ICS Calendar] css for individual data feeds within a multiple feed listI haven’t got to the list format yet, although I expect there will be a class something like
.ics-calendar-list. But thecolorparameter may do what you want (I’ve updated my answer). I’ll add the list format when I get to it.Forum: Plugins
In reply to: [ICS Calendar] css for individual data feeds within a multiple feed listThe plugin provides a
colorparameter which can take values for the text in each feed in order,color="#800080 #008000 #ffa500". The documentation saysThe base color will be used as a left border on each event, and a lighter tint of that color will be used as the background on the events. Use a tool like the HTML Color Picker to select hex values, if necessary. (Note: the
colorparameter supports either space- or pipe-delimited lists.)If you want to do more, then the standard CSS for custom attributes is to put them in square brackets:
.ics-calendar-month-grid ul.events li[data-feed-key="3"]{ }Then within that rule, you can do what you want for each event from that feed, like
color: red; background-color: #FFEEEE; border-left: red 2px solid;This CSS could be put within a
<style>element in your calendar page so it’s immune from plugin updates.- This reply was modified 5 years, 6 months ago by acleach. Reason: Found plugin documentation
Forum: Plugins
In reply to: [Google Calendar Widget] Using Plugin in HTML pageHave you updated to the most recent version? Google withdrew support for V2 of the Calendar API on 17 November and the widget was updated.
https://wordpress.org/support/topic/google-calendar-widget-no-longer-works?replies=7
Forum: Plugins
In reply to: [Twitter Widget Pro] Displays tweets from account instead of from listI’ve been pulling my hair out with this too. In the end, I looked at the widget code.
If you set the Twitter username in the widget, it will get tweets from that user. If you set the username, it ignores any list name.
If you set the list name in the widget but leave the username blank, it will get tweets included in that list.
You may need to exit the Widgets page and go back to it to get the widget settings to reset themselves if you make changes to the plugin.
(I only use the sidebar widget, I don’t use shortcodes. They may behave differently.)
Forum: Plugins
In reply to: [FBF Facebook page Feed Widget] Feed URL is no longer ValidThat would be this thread? http://wordpress.org/support/topic/feed-broken-2?replies=15#post-5285108
SimplePie barfs because Facebook is including two Content-Type headers, which the W3C spec allows. SimplePie expects only one and is not coded to cope with more than one.
Any widget which relies on SimplePie will fail with the current Facebook feed.
Forum: Plugins
In reply to: [FBF Facebook page Feed Widget] Feed BrokenThe issue is that Facebook now include two “Content-Type” headers in their feed (which is quite legitimate according to W3C standards) and SimplePie only expects one. When there are two, the variable in SimplePie which should contain a single string actually contains an array of two strings.
I’m afraid I altered the SimplePie code to check whether the header was an array, and if so only to use the first one. This appears to be compatible with the W3C specification, which states that Content-Type headers must appear in the order in which they apply.
I judged that since SimplePie is common, any other feed it got which had multiple Content-Type headers would also fail, so it was justifiable to change the script to cope with that.
The Facebook feed now works fine.