• Resolved tiplesam

    (@tiplesam)


    I try to fill in a Text/HTML field with the Shortcoder Plugin [sc name=”button_erweitern_um_class” ][/sc] but since an updates, the <Script> will not load any more. it seems that the Quiz-Master ignore the <script> tag. Can you help me?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Tiplesam,

    Can you please tell me on which version this was working properly? Also please share a screenshot/ screencast if possible so we can check and help you to fix the issue.

    Regards,
    Sumit

    Thread Starter tiplesam

    (@tiplesam)

    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

    Hi Tiplesam,

    Can you please share the code which you want to execute using the shortcode as we check with the default function of WordPress using the shortcode and that is working properly so please share the code you want to execute using the plugin.

    Regards,
    sumit

    Thread Starter tiplesam

    (@tiplesam)

    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

    Thread Starter tiplesam

    (@tiplesam)

    but it is not the Code that is wrong, every <Script> Will not execute within the QSM. it just shown the Included code.

    Hi Tiplesam,

    As we check on our staging website we never face such an issue the script is working properly. Please check the below-given screenshots for your reference.

    https://drive.google.com/file/d/1iPvvoXlNavZgmtfTiQM1PGyjP-ck4tZL/view?usp=sharing
    https://drive.google.com/file/d/1CKcdCJkEMUw43pvmRG9VT0rwccgBc_-t/view?usp=sharing
    https://drive.google.com/file/d/146mVqoFVnd0fbArxlu_1vUFc20PUH_5-/view?usp=sharing

    It is a bit hard to answer why you are experiencing this issue. The best advice I can give is the standard fault finding and fixes.
    I first advise you to clear the cache and cookies. You can also try to reset your permalinks and try again. The issue could also be due to a theme or plugin conflict

    Themes:
    As a test, switch to a default theme such as twenty-twenty and see if this fixes it.

    Plugins:
    If that doesn’t work, also deactivate all plugins apart from QSM and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
    https://en-gb.www.ads-software.com/plugins/health-check/

    Regards,
    Sumit

    Thread Starter tiplesam

    (@tiplesam)

    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.

    Hi Tiplesam,

    Ok, let me know if you need more help in the future.

    Regards,
    sumit

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Shortcodes are not execute, just shown as Text’ is closed to new replies.