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

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="https://code.jquery.com/jquery-1.10.2.js"></script>
Ecwid.OnPageLoaded.add(function(page) {
if ("PRODUCT" == page.type) {
$('.ecwid-productBrowser-details-descr p').each(function(){
if (!$(this).text().trim().length) {
$(this).hide();
}
});
};
});

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!