Title: JS not loaded with shortcode
Last modified: October 20, 2017

---

# JS not loaded with shortcode

 *  Resolved [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/)
 * I am using your plugin (with Timber) without any issues so far, but I ran into
   something where JS is not loaded.
 * I have created a page, named profile.
    On that page there’s an [ACF repeater](https://www.advancedcustomfields.com/resources/repeater/)
   with one of the fields being a WYSIWYG field.
 * In it I load the shortcode: [theme-my-login default_action=”profile” show_title
   =”0″ reg_link=”0″]
 * but the JS is not loaded as can be seen in [this image](https://imgur.com/a/HAYbU).
 * How can I fix this ?
    -  This topic was modified 8 years, 7 months ago by [Beee](https://wordpress.org/support/users/beee/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/#post-9609480)
 * The profile script is always enqueued. Is another plugin maybe dequeueing it?
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/#post-9609510)
 * I doubt another plugin is dequeueing it, but will do some more debugging and 
   report back.
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/#post-9609700)
 * The JS appears to be loaded because it shows in the source code but it’s looks
   like something is being blocked somehow. There are no errors in my console or
   in my logs.
 * I have deactivated all plugins (that I could without the basics stopping to work)
   and removed all js, which I think could be involved.
 * There’s 1 js file which I can’t remove/deactivate since the change password form
   is shown in a js dependency.
 * This is the js I use (to create tabbed content):
 *     ```
       function openTab(evt, tabName) {
           // Declare all variables
           var i, tabcontent, tablinks;
   
           // Get all elements with class="tabcontent" and hide them
           tabcontent = document.getElementsByClassName("tabbed-content");
           for (i = 0; i < tabcontent.length; i++) {
               tabcontent[i].style.display = "none";
           }
   
           // Get all elements with class="tablinks" and remove the class "active"
           tablinks = document.getElementsByClassName("tab-links");
           for (i = 0; i < tablinks.length; i++) {
               tablinks[i].className = tablinks[i].className.replace(" active", "");
           }
   
           // Show the current tab, and add an "active" class to the button that opened the tab
           document.getElementById(tabName).style.display = "block";
           evt.currentTarget.className += " active";
       }
       ```
   
 * I did notice there’s no js/no-js added to the body class of the page I’m showing
   the form on. Does that matter ?
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/#post-9675687)
 * Does this info help you anything in pinpointing the issue ?
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/#post-9873030)
 * Issue is not resolved, but I’ve changed the setup to avoid this issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘JS not loaded with shortcode’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Beee](https://wordpress.org/support/users/beee/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/js-not-loaded-with-shortcode/#post-9873030)
 * Status: resolved