- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
The changes I make in variation #1 are not saving.
The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I can edit the HTML ok and save it, but if I leave and come back the changes I made are no longer there for the test. The test is on this page (https://www.cougarmtn.com/) and the test is to remove the pricing (located about half way down).
This is a wordpress website, and the pricing section is inserted via a widget.
Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
This is dependent on how your widget loads, but you can just copy and paste the following into your experiment variant's variation code that you're targeting:
window.onload = function(){ var pricingSection = document.getElementById('tm-top-c'); // Grabs the pricing section if(pricingSection){ // Checks if the pricing section exists when the document has finished loading pricingSection.remove(); // If the pricing section exists, remove it } }
I've added comments to help you see what's happening.


Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I've tried inserting that into the test area, but it still isn't saving (I save the experiment and leave, come back and the edits are no longer visible). Here is the code I'm inserting:
Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report


Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Sure thing, I've attached a screenshot. It's the big white text area toward the bottom that says Variation Code above it.



Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
http://dev.cougarmtn.com/wp-content/uploads/2016/11/scrennshot2.png
Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
var theHtmlYouMade = '<div><strong>Some text in here</strong></div>';
Now, instead of everything you have there, you can instead do the following:
$('.uk-scrollspy-init-inview > .uk-margin > div:eq(0)').replaceWith(theHtmlYouMade);
Finally, you need to work with your developers to resolve the following issues first otherwise you'll continue encountering issues: $ is undefined at the moment which means you can't use $('.some-selector') for example, and have to use jQuery('.some-selector') instead, and the selector you're attempting to replace with new HTML is not available until you scroll down on your page. You'll need to listen for whatever even triggers the presence of .uk-scrollspy-init-inview > .uk-margin > div:eq(0) and work off of that.


Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Re: The changes I make in variation #1 are not saving.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report

