tiplesam
Forum Replies Created
-
Hello sumitsanadhya,
thx for the support and the great tip with Health-Check.
But all my tests show me… the shortcoder plugin will not run in combination with QSM.
I tested a nother Plugin called Wp-Coder. With this Plugin all Scripts executed in the right way it likes to be.Thank you and have a nice day.
but it is not the Code that is wrong, every <Script> Will not execute within the QSM. it just shown the Included code.
Yes, there ist the code which i write in the ShortCoder Plugin an like to execute with [sc name=”button_erweitern_um_class” ][/sc]:
“<script>
document.addEventListener(“DOMContentLoaded”, function(event) {
var aktuelle_url = window.location.href;
const lastSegment = aktuelle_url.slice(0, -1).split(“/”).pop();/*console.log(‘ // Your code to run since DOM is loaded and ready // ‘ + lastSegment );*/
var qsm_submit_btn = document.getElementsByClassName(“qsm-submit-btn”);
for (let i = 0; i < qsm_submit_btn.length; i++) {
qsm_submit_btn = qsm_submit_btn[i];
qsm_submit_btn.classList.add(‘et-‘+lastSegment);
}
var submit_the_form = document.getElementsByClassName(“submit-the-form”);
for (let j = 0; j < submit_the_form.length; j++) {
submit_the_form = submit_the_form[j];
submit_the_form.classList.add(‘et-‘+lastSegment);
}
}, {passive: true});</script>”
Here is a Screenshot of it: https://www.dropbox.com/s/t8jp3lwymukow0e/Screenshot%202022-03-25%2013.14.22.png?dl=0
Thank you again for th Help with my Problem.
Bobby
Hello, I Dont know the exact version, sorry. Here are two screenshorts, one in the QSM with the Shortcode <a href="https://capture.dropbox.com/lkvYzH5430ITtsqp">https://capture.dropbox.com/lkvYzH5430ITtsqp</a> and the view on the Webpage <a href="https://capture.dropbox.com/bKw1bpaT3XFvhDDK">https://capture.dropbox.com/bKw1bpaT3XFvhDDK</a> Thank you for the Support until now. Greetings Bobby Zuber