New answers tagged

1

Migrate message is merely informational. It isn't a warning or error. It is displayed unconditionally whenever respective script is loaded. In current WP version it is loaded whenever jquery handle is requested by anything, alongside jquery-core.


0

I would download the jquery.mixitup.min.js and place it in the same folder as your custom script (js), also makes sense to place the "main.js" file in there also, keeping your js together, if you can. Not sure if your using a child theme or not,if not but add the following to your functions file, overwriting your original code: add_action( ...


0

So turns out that on Safari and Firefox, the page would refresh before the email got sent out. As a workaround I just created another button that the user has to click on before clicking on the actual button that updates their profile information. The click event handler on that first button is being used to send out the information to the php file now. It ...


0

Make sure you set your define( 'WP_DEBUG', false ); Else the notices and possible errors may cause 404.


0

That's called Thickbox. Since you give no clue what you want to use it for, you'll have to figure out the rest for yourself...


2

Your site has been infected with fake jquery. Check the Sucuri scan (i have no affiliation with this company). The root infection may be in your 404 template, but if you don't know where to start you're better of seeking professional support.


0

Milo is correct. For instance, go to your theme's functions.php file, and add the following: add_filter( 'allowed_http_origins', 'add_allowed_origins' ); function add_allowed_origins( $origins ) { $origins[] = 'https://site1.example.com'; $origins[] = 'https://site2.example.com'; return $origins; } Now an ajax call from ...


1

Shortcodes are backend stuff, so you can't just change values of shortcodes itself in editor with jQuery, the thing you can do is to call both shortcodes, hide one of them, and on click show him and hide other one. It all depends what do you want to do, but one of the option is to hide them like this and in this case use classes also with display:none


0

You should consider giving the Ajax Load More WordPress plugin a try. https://wordpress.org/plugins/ajax-load-more/


0

Your first problem is that your AJAX function in functions.php should echo its results, not return. You also need a call to wp_die() at the end. I'm not completely sure what you are trying to do but it looks like half of your loop probably shouldn't be there. Currently you are outputing the whole #ajaxx list inside itself every time you click #load-more. ...


0

This will (*should) fix your first problem: function rmcc_post_listing_shortcode1( $atts ) { // No need for output buffering - AJAX handlers should ECHO their response // ob_start(); // .. // So long, farewell // $myvariable = ob_get_clean(); // return $myvariable; // Now terminate exit; } Your second problem is that you ...


-1

Use jQuery instead of $. e.g use jQuery('.parallax') instead of $('.parallax').


1

You must make sure that your styles are hooked into the head of the site after other styles, so they will override them. You do this by putting them late in the action queue like this: add_action ('wp_head', 'your_output_function', 9999);


0

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 ...


1

After join term_id exist two times. You should specify which term_id you are querying by prefixing full table name (or alias). Also there is a other error term_taxonomy.term_id = terms.term_id missing table prefix. So the updated query will look like $query = 'SELECT term_taxonomy_id, ' . $wpdb->prefix . 'terms.term_id, taxonomy, name FROM ' . ...


3

Here's another option which avoids having to de-register and re-register: // Move jQuery to the footer wp_scripts()->add_data( 'jquery', 'group', 1 ); wp_scripts()->add_data( 'jquery-core', 'group', 1 ); wp_scripts()->add_data( 'jquery-migrate', 'group', 1 );


0

You ajax logic seems okay.. In order to solve a duplication problem you need to add a flag. Example: var isLoading = false; -- Your click event is here -- // Only let things to happen if there's no ajax in the middle of process if( isLoading == false ) { // Set it to true - now nothing happens if you click it again isLoading = true; -- All ...


0

I've worked it out with thanks to LPH for pointing me in the right direction. I added this to functions.php: function login_page_url() { global $loginurl; $loginurl = "login page url"; echo $loginurl; } And this to category.php, where the link to the post goes: <a href="<?php if ( is_user_logged_in() ) { echo get_permalink(); } else { ...


2

You might start by looking at the is_user_logged_in() pluggable function. https://developer.wordpress.org/reference/functions/is_user_logged_in/ This is basically two lines: $user = wp_get_current_user(); return $user->exists(); In your case, wrap the links inside the curly braces of a conditional. if ( is_user_logged_in() ) { // link }


0

Answering own questions is becoming a habit :) But hope this helps others after finding a solution that worked for me. First defining the three variables I needed in the upload function: var features = ""; var colors = ""; var styles = ""; Then, added the following to prevent error if pwTags was empty: if (pwTags != null) { ...


0

These three lines work as expected , There is a problem maybe with other code before these lines that prevent the execution of your script; In case just fire the browser console in this page and try them here $( "html" ).append( "<div id='bf_rsvp_note_display'></div>" ); $( "body" ).append( "<div id='bf_rsvp_note_display'></div>" ...



Top 50 recent answers are included