Archived topic
Dynamic Term Description outside of container
5 replies · Started by Jesper on May 11, 2021
Hi, I'm having trouble with the dynamic term description. It is not contained in the container, but breaks it.
I took a look at the CSS and compared it with the dynamic entry excerpt (which works).
This is how the dynamic entry excerpt looks:
<div class="dynamic-entry-excerpt"><p>{content}</p></div>
This is how the dynamic term description looks:
<div class="dynamic-term-description"><div><div>{content}</div></div></div>
I tried to create different containers to hold the term description, but the error appears regardless. You can see the error in action here in two separate containers: https://klimatklick.se/effektivisering
EDIT: There's a warning in the console regarding the Masonry columns, but it does not make much sense to me.
Hi there,
can you disable your cache plugin as that looks to be messing with the CSS order as well as where there JS error in the console is coming from. Let me know
Hi, before I posted I tested this by using the Health Check & Troubleshooting plugin and disabled all plugins except the GP ones, without any success. Anyway - now the cache plugin is disabled.
That is odd.
What do you have any the Description field for the category ? I can see a couple of <div> elements is there any other HTML?
Gaaahh.. I'm so sorry. When I changed the category description editor from Visual to Text the two empty divs was there, removing them and replacing with a p tag did the trick. But thanks alot for pointing me in the correct direction!
However, the console error is still there. It seems to have something to do with inifinite scroll and the load more button. But that error is maybe worth a post of it own in the future.
Glad we found what the issue was!
If you could raise a new topic - we'll take a closer look at the console error :)