Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pastelintel

    (@pastelintel)

    TL;DR: I sort of solved my own problem, DEPENDENCIES, if you’re having problems try removing them cause they may not be need

    Hello,

    @mrtom414, unfortunately I have tried every get_x_directory_uri in the book, tried stylesheet, scripts, template, etc. Currently it is set to template (I updated it after posting the question) and the jquery is still not functional so that’s not the issue either.

    The scripts are all properly enqueued or none of them would be working, including the javascript. They also would not be visible at the bottom of the auto-generated html

    @jcastaneda I decided just to replace all of it with javascript instead of jQuery, but when I tried this it didn’t work at first, so just out of curiosity I removed my dependencies all together and what do you know, it worked!

    so because I already replaced the super obvious parts of my jQuery with the javascript I cant 100% tell if it has fixed the problem but my sticky header is now working again ?? so I’d say it probably is fixed

    Thread Starter pastelintel

    (@pastelintel)

    Alright so I created the following scripts to run tests:

    alert("Javascript Test");

    AND

    jQuery.noConflict();
    
    (function( $ ) {
    $.extend({ alert: function (message, title) {
        $("<div></div>").dialog( {
          buttons: { "Ok": function () { $(this).dialog("close"); } },
          close: function (event, ui) { $(this).remove(); },
          resizable: false,
          title: title,
          modal: true
        }).text(message);
      }
      })
    })(jQuery);

    *did these in separate documents and enqueued them separately

    The Javascript one worked like a charm so it would seem whatever the problem is, its exclusive to the jQuery, I also tried changing out the $ for jQuery with no luck

    Now most of my jQuery stuff came from external sources so I’m not 100% sure I coded that alert test correctly so let me know if that could be the problem as well, but all of my other jQuery code other than small snippits here and there is from github sources, such as the news ticker. I think I’ll try to see what I can do about simplifying the code and turning it into javascript instead since it seems jQuery is the issue here.

    • This reply was modified 4 years, 7 months ago by pastelintel.
    • This reply was modified 4 years, 7 months ago by pastelintel.
    Thread Starter pastelintel

    (@pastelintel)

    Hello, yes I reinstalled wordpress to see if that would help, I have not moved over my font files, this helps with the missing font awesome icons on my site but no change to the missing javascript unfortunately… same with the re-install, no change.

    any other 404 errors are for a specific group of photos that I haven’t updated their location in the HTML but while I dont think it has any effect on the javascript I’m willing to try literally anything at this point because I’m at a total loss…

    Thread Starter pastelintel

    (@pastelintel)

    Unfortunately that didn’t help ?? It still is not executing the scripts, I saw the similar posts but none of those helped, I was attempting to do:

    jQuery(document).ready(function ($) {});

    but that didn’t seem to work either

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