Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Diego

    (@diegovogel)

    Great! Thanks for confirming.

    Thread Starter Diego

    (@diegovogel)

    @sixaxis, thanks for following up. Just sent login details to [email protected].

    Thread Starter Diego

    (@diegovogel)

    Hello Alex,

    I’m not sure I understand your question. Are you saying that replacing links/references to a media file won’t work since the media is on a remote server? If so I don’t think this would be a problem. The system I’m using is LargeFS from WP Engine (more info here).

    When a media file is uploaded via WP Admin, it’s uploaded to the WPE server first. Then LargeFS moves the file to AWS and redirects all requests for that file to AWS. I don’t think the actual file references in the database are changed, but the requests are simply redirected to AWS, if that makes sense.

    Because of this, I think uploading a new file and replacing references in the database would work with LargeFS.

    Ran into this same problem today and came up with some JavaScript to fix it (as opposed to JQuery). No real advantage to using this method but I thought I’d post here anyway. It’s a little redundant because it “closes” all accordion items on the page even though only the first item of each accordion is open. But it works.

    <script>
    	function closeAccordions() {
    		var accordionTitleElements = document.getElementsByClassName('elementor-accordion-title');
    		var accordionContentElements = document.getElementsByClassName('elementor-accordion-content');
    		for (i = 0; i < accordionTitleElements.length; i++) {
    			accordionTitleElements[i].classList.remove("active");
    		}
    		for (i = 0; i < accordionContentElements.length; i++) {
    			accordionContentElements[i].setAttribute("style", "display: none");
    		}
    	}
    	setTimeout(closeAccordions, 50);
    </script>
Viewing 4 replies - 1 through 4 (of 4 total)