I have a WordPress site that has many Excel spreadsheets from OneDrive embedded using Custom HTML blocks.
I'd like to minimize the number of spreadsheets being loaded on a page by having a user be able to press a button or link to select the spreadsheet that is embedded into an HTML block. The Custom HTML that contains the embed code only needs to change the source line (src=) to accomplish this, but I can't figure out any way to do this.
Is there a way to change one HTML line in the Custom HTML block, or alternately, a way to change the entire text of the Custom HTML block, by clicking a button or link?
<div class="aligncenter">
<div class="wrapper">
...
src="https://1drv.ms/..."
...
</div>
</div>