Jquery not loading / running on WordPress home page

You have initialized the script twice. Here is the updated script: jQuery(document).ready(function($) { var $window = $(window), win_height_padded = $window.height() * 1.1, isTouch = Modernizr.touch; if (isTouch) { $(‘.revealOnScroll’).addClass(‘.animated’); } $window.on(‘scroll’, revealOnScroll); function revealOnScroll() { var scrolled = $window.scrollTop(), win_height_padded = $window.height() * 1.1; // Showed… $(“.revealOnScroll:not(.animated)”).each(function () { var $this = $(this), offsetTop = … Read more

Jquery code won’t run loaded from WP, but run from console

Ok, the code is fine, the problem is that the target button[data-id=”select-especialidad”] is being used by bootstrap-select and even if the script load before my code, it takes a few seconds or less to process the information. So the code should be wrapped after a function that checks that the event has been loaded. This … Read more

I can’t enqueue Suggest.js in frontend – not added

Provided you’ve confirmed that WP’s native ‘suggest’ script is actually being rendered on the page properly (ie. you’re using the correct template for home vs front-page), sometimes to avoid script conflicts on the page, you need to wrap your script in an anonymous function. So something like: <script> (function($) { $(“#my_input”).suggest(“<?php echo get_bloginfo(‘wpurl’); ?>/wp-admin/admin-ajax.php?action=ajax-tag-search&tax=my_taxonomy”, { … Read more

How to toggle custom WP archive list

I know nothing about the theme or plugins you are using. Since your theme isn’t responsive you could get away with the down and dirty approach if you can edit CSS files: /wp-content/themes/mytable/style.css line 262 .content-bar { border-right: none; width: 890px; } /wp-content/themes/mytable/style.css line 181 .right-sidebar { display: none; } Or override by adding your … Read more

jQuery.post() calling function with parameter

You second JS setting is more in the right direction, your biggest failure seems in misunderstanding how ajax requests are handled on the WP PHP/server side. On the PHP side, an action is being triggered based on the action parameter in your AJAX request. Since this is a generic mechanism it doesn’t have any facilities … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)