View Single Post
Old 05-23-2016, 05:42 PM
Chelsy Henry's Avatar
Chelsy Henry Chelsy Henry is offline
Join Date: Jan 2014
Posts: 4

Thank you for this.

Half of our products were typed in an old Microsoft Word, we then copy and pasted them into Ecwid. I understand the extra spacing from that. The new Word we currently use does not add the extra spacing.

I tried to put the script:
<script src=""></script>
Ecwid.OnPageLoaded.add(function(page) {
if ("PRODUCT" == page.type) {
$('.ecwid-productBrowser-details-descr p').each(function(){
if (!$(this).text().trim().length) {

into the page of wordpress where Ecwid is but that did not work.
I then tried to put it in the header.php file (but only at the end of it) because I'm unsure where else it would go.
That did not work either..

What am I doing wrong with the script?

Thank you again!