Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Be|theme demo. We don`t offer theme customization.


Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
3. If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.


IMPORTANT!!! Along with your inquiry, please attach the address of the page which concerns the question. This will cause the time to answer on your question will be much shorter. If you do not want to publish your address publicly in the forum, please send a private message. Thanks!

JavaScript not being indexed

Hello. I am having issues with the theme not applying my JavaScript code. Upon testing it in the console on the corresponding page, it works perfectly. Upon applying it in Theme Options > Custom JS, it seems to not even index it.
Please advise further on how should this be resolved. Regards, Ioan

Comments

  • Please sign in to see answear!
  • var dollarSing = document.querySelectorAll('p#wrdpress_pkg>span');
    for(i = 0; i < dollarSing.length; i++) {
    dollarSing[i].style.display = "none";
    }

    var dollarTwo = document.querySelectorAll('.price>span');

    for(i = 0; i< dollarTwo.length; i++){
    dollarTwo[i].style.display = "none";
    }

    var couponBox = document.querySelector('.reo-coupon-box');
    var formSubmit = document.querySelector('.submit-opts-form');
    couponBox.appendChild(formSubmit);


    As you can see, it is perfectly valid JavaScript and DOM manipulation.
    Upon pasting this code in the console, it works perfectly. The moment it is applied in Custom JS, it is as it was never written. You can see for yourselves on this page: https://thewebprestige.com/reach-us/

    If needed I will cooperate further, but has to be resolved in one way or another.
  • Please sign in to see answear!
Sign In or Register to comment.