Rich-text Reply

Deleted Text Showing in Preview

jamesapearson 02-17-16

Deleted Text Showing in Preview

[ Edited ]

I deleted a bunch of text for a new variation. A couple blocks of that text are still showing up in the preview for that variation.

 

Sometimes, even though they don't show in the Editor, they are in the HTML. So I delete them. And I preview again. And they're still there. Even though now they are not in the HTML.

 

The next day I come back and they're back in the HTML, even though they don't show in the Editor.


Anyone have answers?

 

Screen Shot 2016-02-17 at 1.53.39 PM.png

robertchan 02-18-16
 

Re: Deleted Text Showing in Preview

It looks like you're replacing the HTML which is not the most efficient way to go about making the edit you mentioned. Try targeting the removal of a specific paragraph to start. For example, let's say you want to get rid of the second paragraph in this particular page, you could write something like this in your variation code: $("p:eq(1)").remove();

 

You can change the number in the eq brackets to another paragraph accordingly.

Robert Chan