Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]

From your site i can say that script is not being loaded because of wrong opening quote for script tag.Use ” instead of ” So <script src=”http://lookbook.nu/widget/profile.js?id=2303472&width=standard&align=left&stats_fans=1&fanbox=yes&hash=14575a9cd02fd36d2758e5db3cb92b5a”></script> Should be this <script src=”http://lookbook.nu/widget/profile.js?id=2303472&width=standard&align=left&stats_fans=1&fanbox=yes&hash=14575a9cd02fd36d2758e5db3cb92b5a”></script> Update: Add <script> $LB = jQuery; </script> before the other script tag. I mean before <script src=”http://lookbook.nu/widget/profile.js?id=2303472&width=standard&align=left&stats_fans=1&fanbox=yes&hash=14575a9cd02fd36d2758e5db3cb92b5a”></script>

Changing when mobile menu is displayed

NOTE: Please see edits below The menu is activated via media queries. Media queries for width<=643px start at line 2771, and those for 767px start at line 2748. Now, to change the breakpoint for the menu, we’ll move the mobile menu css from the 643px media query section to the 767px media query. On line … Read more

Javascript code not working – $ is not a function error

I actually just wanted to make a comment but..(reputation is too low) so doing it this way. If for some reason two versions of jQuery are loaded (which is not recommended), calling $.noConflict( true ) from the second version will return the globally scoped jQuery variables to those of the first version. So to solve … Read more

Get current day using javascript [closed]

I’ve an approach for you, getting the WordPress date in JavaScript, a numb one, but still an approach: 🙂 functions.php wp_enqueue_script( ‘wpse-custom-scripts’, get_template_directory_uri() .’/js/wpse-custom.js’, array(‘jquery’), ‘1.0.0’, true ); wp_localize_script( ‘wpse-custom-scripts’, ‘wpse’, array( ‘date_time_now’ => date( ‘Y-m-d H:i:s’, current_time( ‘timestamp’ ) ), //format: YYYY-MM-DD 00:00:00 ) ); wpse-custom.js jQuery(document).ready(function($) { console.log(“WordPress date now: ” + wpse.date_time_now); … Read more

Jquery dropdown menus working locally, but not in WordPress [duplicate]

First thing you do about this issue is try to check if the button calls the jquery function. for example: $(#submit-button).click(function(){ alert(‘button was clicked!’); // to display an alert }); or using the console $(#submit-button).click(function(){ console.log(‘button was clicked!’); // check using web browser console }); If one of them works then there is no issue … Read more

Require Credits Footer

I believe (off of top of head) that theme authors cannot ‘force’ attribution code as part of the theme. The theme must allow for removal of the attributions. (Can’t find the doc standards for this at the moment.) You should be able to edit the theme code that shows the attribution, although that is not … Read more

JSON Object Value Show Undefine

You either need to tell jQuery that you expect a json response from the server: $(“#txt-cmt”).keypress(function(e) { if (e.which == 13) { var comment = $(this).val(); var message = { action: ‘show_comment’, user_message: comment }; $.post(ajaxUrl.url, message, function(data) { console.log(data.user_name); }, ‘json’); } }); or you need to parse the response as json with JSON.parse().

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