Extra and tags after block elements
-
Odd additional <p>
</p> codes are inserted after block elements, e.g. DIV, H1…H6, P etc.I’m testing out 3.0.11 prior to installing on several live sites.
In the old 2.4 it was possible to use block level tags like headings in the codes and there was no additional <p>
</p> wrapped around following elements. Now as soon as a block level element is used they are added. Additionally even if block level elements were inside conditional tags, the extra <p>
<p> is shown even if the condition is not met.As an example, say I want to treat single day and multi-day events differently, e.g. a start date only for single day and a start and end date for multi-day events.
In the event I previously used code like this
[if-multi-day]<h5>[start-date] - [end-date]</h5>[/if-multi-day][if-single-day]<h5>[start-date]</h5>[/if-single-day]
The trouble is that if the event is a single day I’m getting an additional <p>
</p>from the multi-day messing with the spacing of a single day, and vice versa for multi-day events.https://www.ads-software.com/plugins/google-calendar-events/
- The topic ‘Extra and tags after block elements’ is closed to new replies.