Steps to Use Live Updates Methods
What are Methods?
Available Methods
How to use Methods
1) Wait for the script to load
if(window.sgLiveUpdateInitiated === true) {
myFunction();
} else {
document.addEventListener('live_update_script_ready', myFunction);
}
function myFunction() {
//Target an instance of SitegurusLiveUpdate and use a method.
}2) Optional: Add a data-sg-live-update-section data-attribute to the layout
data-sg-live-update-section data-attribute to the layout3) Access the instance for the layout you're working on
4) Call the method on the instance
Last updated
Was this helpful?

