Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1333999
    JfantasyBooks
    Participant

    Hello,

    Details:

    Name: JFantasyBooks
    Site: Fantasy-Books
    Site Url: https://fantasy-books.live
    WordPress Version: 4.7.1
    X Version: 4.6.4
    Cornerstone Plugin Version: 1.33

    Problem:

    I am trying to use Data Tables, a plugin directory for JQuery. I have used this table before, and currently use it for my other site Fantasy-Updates that also uses the X-theme.

    Problem here is, for some reason, no matter what I do, the Javascript won’t work, and I jut get a normal looking table.

    1. I tested for Plugin conflicts. Disabled all the plugins and purged the cache. Nothing worked.
    2. I tested if there was something in my css files or Javascript files from the customizer by deleting them all, it did not work.
    3. I switched form the child theme back to the main x theme, and that did not solve the issue.
    4. I even deleted everything in my functions.php file, and tried to see if that would work. It did not.

    It is important that I get this right. Can you help me?

    Here is the test page with the table => https://fantasy-books.live/test/

    #1334459
    Friech
    Moderator

    Hi There,

    Thanks for writing in! It sounds like you might be having an issue with a third party script. Regretfully, we cannot provide support for third party scripts due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Though I am seeing this error on that page. Try wrapping your script with this function.

    jQuery(document).ready(function($){
    
      /*YOUR SCRIPT HERE*/
    
    });

    Thanks

    #1335685
    JfantasyBooks
    Participant

    Thanks for replying.

    It’s fine, I figured out how to do it. It seems the usual way of putting it can have conflicts. So, I used this format:

    ( function($) {
    
    [Enter Code]
    
    } ) ( jQuery );  

    and it seems to generally work for everything.

    #1335872
    Nico
    Moderator

    Happy to hear that.

    Thank you so much for sharing.

    Feel free to ask us again.

  • <script> jQuery(function($){ $("#no-reply-1333999 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>