When using wpBakery, this is injecting br tags into content
-
When used to add gtag script into pages, we are ending up with this:
<p><!-- Google Tag Manager --> <br> <script>(function(w,d,s,l,i){w[l]=w[l]| ..... });</script><br> <!-- End Google Tag Manager --> <br>our normal content here....our normal content here....our normal content here....our normal content here....our normal content here....our normal content here....our normal content here....</p>
which obviously messes with the layout.
To get around this for now, I have wrapped the gtag code in a span with a class and then added global css to give those matches a negative top margin:
<span class="gtagfloat"><!-- Google Tag Manager --><script>(function(w,d,s,l,i){w[l]=w[l]|| ....});</script><!-- End Google Tag Manager --></span> p:has(span.gtagfloat) { margin-top:-15px; }
but it would be nicer if something like this was built into the plugin.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘When using wpBakery, this is injecting br tags into content’ is closed to new replies.