Brian Worley
Forum Replies Created
-
Since each calendar has an ID that you can get then maybe it’s possible to add some CSS to style the events with additional text based on the calendar ID.
CSS using before and after should work.
calendar_id::before{ content: "Calendar label of your choice"; }
Would be amazing if you would share the solution… I’m trying to do the same thing.
Thanks
Brian
Hi Harish
Thanks for asking me to do the screenshot, when I did I looked and saw that the difference on the live site was that Implicit was set to YES, but on the test site it was set to NO.
I have now made the live site with the Implicit set as NO, and it is working. I’m sorry for wasting your time with this.
We can mark this as resolved now.
- This reply was modified 7 years, 11 months ago by Brian Worley.
Sorry I missed the reply earlier…
The site that is not working is https://www.p4pictures.com – here’s a blog post where the subscribe to comments is not showing https://www.p4pictures.com/2016/12/using-speedlite-flash-motocross/
I’m using the standard wordpress comment system.
Thanks
Think I’m getting there.
I switched to the standard WP 2012 theme, deactivated all plugins except Simple Calendar 3.0.11 – still the results were the same with extra
<p> <br /> </p>
tags around certain elements. So I did some more testing, and found a different behaviour of the conditional tags – or a different treatment of them by WP or the plugin.In the past I would have a code like this below with no line breaks or returns
[if-multi-day]<h4>[start-date] - [end-date]</h4>[/if-multi-day][if-single-day]<h4>[start-date]</h4>[/if-single-day][if-description]<h5>[description]</h5>[/if-description]
However if I change to code like this below
<h4>[if-multi-day][start-date] - [end-date][/if-multi-day][if-single-day][start-date][/if-single-day] </h4><h5>[if-description][description][/if-description]</h5>
It does seem to improve things. It is as if the conditional test being false will result in the output of an extra set of
<p><br /></p>
tags before the heading tags. However it does result in a blank<h5> </h5>
appearing in the output when there is no event description. Whereas in the past I would get no tags using my original formatting with the heading tag inside the conditional test.To add… I just checked in the database with phpMyAdmin for the calendar entry. It does not show any additional tags or hidden CR/LF type codes.
Hi Nick,
As far as I know I don’t have extra line breaks in the code. I went and removed all the possible ones I could find, even deleting the characters either side of possible line breaks and re-typing them in. I think my code is actually a single line without any breaks.
Also if I change the
<h5> </h5>
wrapped around the elements to<span> </span>
tags the additional<p> <br /> </p>
doesn’t happen.Related to this is the fact that if you use a
<h4> </h4>
around the first element in the editor – as I had in the past – then there is a<p> <br /></p>
inserted before it. So you get the square bullet point with a blank line followed by the event title wrapped in a <h4> tag. Of course I can remove the bullet point with CSS, but the blank line I can’t.I am not sure if this is a WP editor or Simple Calendar issue, but either way it’s frustrating. The test site is working with WP4.4 and Simple Calendar 3.0.11
Thanks Nick, i’ll give it a go and see how I get on.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Update issues@nick Young
Everything broke… I went from v2.4.0
I lost the Google API key, any configured calendars, custom styling the lot. It was like I was starting from a fresh clean install. Also since everything was gone, I would have had to start from scratch again completely. One trouble in such cases is that there’s no way to readily copy the API keys, calendar urls and config from the GCE 2.4 screens since they were wiped out by GCE 3
I have now re-installed GCE 2.4.0 from the link mentioned above and all the calendar is back just fine.
https://www.p4pictures.com/photo-workshops/
I have customised styling to display my calendar info and if the new plugin can’t support that then it’s time for me to find something else that will.
I also have the plugin on two other sites that both use custom styling, the widget and short coded calendars in pages / posts. One of the sites also has multiple feeds displayed in a single widget in some places.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Update issuesV3 beware – the one that wrecks your calendar feeds on your website without warning!
The V3. update info does not give any hint of the catastrophic results it will have on a working calendar install – this is pretty poor from the developers. There’s also no easy way, short of re-installing the older version, of getting to the customisation done in the older versions.
I’m off to go and re-install v2.4. Since it looks like I have to rebuild the calendar settings for V3 I might as well look for an alternative plug-in too