and empty p tag being output when template is empty and REST API is used
-
Hi Darren,
When the REST API is used instead of the repeater template & the repeater template is left empty,
A is injected randomly into the page markup leaving a white space
I instead placed an opening php tag:
<?php
This would at least output an empty p tag:
<p class=””></p>
For some reason an empty class is also created. In the short term I was able to hide the p tag using the CSS below from chaining a parent main div..main>p:first-child {
display: none;
}
In short, when the template is left empty or unused and the REST API is used instead, is there a way to remove the or p tag being output?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘ and empty p tag being output when template is empty and REST API is used’ is closed to new replies.